HDFS-2258. Reset lease limits to default values in TestLeaseRecovery2. Contributed by Konstantin Shvachko
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1163821 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b9a5fd5190
commit
4f1a0e36fa
|
@ -1548,6 +1548,8 @@ Release 0.22.0 - Unreleased
|
|||
HDFS-1981. NameNode does not saveNamespace() when editsNew is empty.
|
||||
(Uma Maheswara Rao G via shv)
|
||||
|
||||
HDFS-2258. Reset lease limits to default values in TestLeaseRecovery2. (shv)
|
||||
|
||||
Release 0.21.1 - Unreleased
|
||||
HDFS-1466. TestFcHdfsSymlink relies on /tmp/test not existing. (eli)
|
||||
|
||||
|
|
|
@ -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.FSConstants;
|
||||
import org.apache.hadoop.hdfs.protocol.LocatedBlocks;
|
||||
import org.apache.hadoop.hdfs.server.common.HdfsConstants;
|
||||
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(FSConstants.LEASE_SOFTLIMIT_PERIOD,
|
||||
FSConstants.LEASE_HARDLIMIT_PERIOD);
|
||||
//create a file
|
||||
// create a random file name
|
||||
String filestr = "/foo" + AppendTestUtil.nextInt();
|
||||
|
|
Loading…
Reference in New Issue