HDFS-4826. TestNestedSnapshots times out due to repeated slow edit log flushes when running on virtualized disk. Contributed by Chris Nauroth
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1483150 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c9ace69cff
commit
da05873e0e
|
@ -144,6 +144,9 @@ Trunk (Unreleased)
|
|||
HDFS-347. DFS read performance suboptimal when client co-located on nodes
|
||||
with data. (Colin Patrick McCabe via todd and atm)
|
||||
|
||||
HDFS-4826. TestNestedSnapshots times out due to repeated slow edit log
|
||||
flushes when running on virtualized disk. (Chris Nauroth via szetszwo)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.apache.hadoop.hdfs.DistributedFileSystem;
|
|||
import org.apache.hadoop.hdfs.MiniDFSCluster;
|
||||
import org.apache.hadoop.hdfs.protocol.HdfsConstants;
|
||||
import org.apache.hadoop.hdfs.protocol.NSQuotaExceededException;
|
||||
import org.apache.hadoop.hdfs.server.namenode.EditLogFileOutputStream;
|
||||
import org.apache.hadoop.hdfs.server.namenode.FSDirectory;
|
||||
import org.apache.hadoop.hdfs.server.namenode.INode;
|
||||
import org.apache.hadoop.hdfs.server.namenode.INodeDirectory;
|
||||
|
@ -48,6 +49,12 @@ import org.junit.Test;
|
|||
|
||||
/** Testing nested snapshots. */
|
||||
public class TestNestedSnapshots {
|
||||
static {
|
||||
// These tests generate a large number of edits, and repeated edit log
|
||||
// flushes can be a bottleneck.
|
||||
EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);
|
||||
}
|
||||
|
||||
{
|
||||
SnapshotTestHelper.disableLogs();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue