|
@@ -32,6 +32,7 @@ import org.apache.hadoop.fs.FSDataOutputStream;
|
|
|
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.FSConstants;
|
|
|
import org.apache.hadoop.hdfs.protocol.LocatedBlocks;
|
|
|
import org.apache.hadoop.hdfs.server.datanode.DataNode;
|
|
|
import org.apache.hadoop.hdfs.server.namenode.FSNamesystem;
|
|
@@ -306,6 +307,9 @@ public class TestLeaseRecovery2 {
|
|
|
u2g_map.put(fakeUsername, new String[] {fakeGroup});
|
|
|
DFSTestUtil.updateConfWithFakeGroupMapping(conf, u2g_map);
|
|
|
|
|
|
+ // Reset default lease periods
|
|
|
+ cluster.setLeasePeriod(FSConstants.LEASE_SOFTLIMIT_PERIOD,
|
|
|
+ FSConstants.LEASE_HARDLIMIT_PERIOD);
|
|
|
//create a file
|
|
|
// create a random file name
|
|
|
String filestr = "/foo" + AppendTestUtil.nextInt();
|