HDFS-2345. TestLeaseRecovery2 fails on 0.23 branch (Uma Maheswara Rao G via atm)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1177158 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2738759fb5
commit
08a348d1e5
|
@ -1024,6 +1024,9 @@ Release 0.23.0 - Unreleased
|
|||
HDFS-2346. TestHost2NodesMap & TestReplicasMap will fail depending upon
|
||||
execution order of test methods (Laxman via atm)
|
||||
|
||||
HDFS-2345. TestLeaseRecovery2 fails on 0.23 branch (Uma Maheswara Rao G
|
||||
via atm)
|
||||
|
||||
BREAKDOWN OF HDFS-1073 SUBTASKS
|
||||
|
||||
HDFS-1521. Persist transaction ID on disk between NN restarts.
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.apache.hadoop.fs.FileAlreadyExistsException;
|
|||
import org.apache.hadoop.fs.FileSystem;
|
||||
import org.apache.hadoop.fs.Path;
|
||||
import org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException;
|
||||
import org.apache.hadoop.hdfs.protocol.HdfsConstants;
|
||||
import org.apache.hadoop.hdfs.protocol.LocatedBlocks;
|
||||
import org.apache.hadoop.hdfs.server.common.HdfsServerConstants;
|
||||
import org.apache.hadoop.hdfs.server.datanode.DataNode;
|
||||
|
@ -316,6 +317,9 @@ public class TestLeaseRecovery2 {
|
|||
u2g_map.put(fakeUsername, new String[] {fakeGroup});
|
||||
DFSTestUtil.updateConfWithFakeGroupMapping(conf, u2g_map);
|
||||
|
||||
// Reset default lease periods
|
||||
cluster.setLeasePeriod(HdfsConstants.LEASE_SOFTLIMIT_PERIOD,
|
||||
HdfsConstants.LEASE_HARDLIMIT_PERIOD);
|
||||
//create a file
|
||||
// create a random file name
|
||||
String filestr = "/foo" + AppendTestUtil.nextInt();
|
||||
|
|
Loading…
Reference in New Issue