static TestSecurityTokenEditLog() { // This test creates NUM_THREADS threads and each thread does // 2 * NUM_TRANSACTIONS Transactions concurrently. // No need to fsync for the purposes of tests. This makes // the tests run much faster. EditLogFileOutputStream.SetShouldSkipFsyncForTesting(true); }
public virtual void SetUp() { Called.Clear(); Configuration conf = new HdfsConfiguration(); conf.Set(DFSConfigKeys.DfsNamenodeInodeAttributesProviderKey, typeof(TestINodeAttributeProvider.MyAuthorizationProvider ).FullName); conf.SetBoolean(DFSConfigKeys.DfsNamenodeAclsEnabledKey, true); EditLogFileOutputStream.SetShouldSkipFsyncForTesting(true); miniDFS = new MiniDFSCluster.Builder(conf).Build(); }
public static void DisableFsync() { // No need to fsync for the purposes of tests. This makes // the tests run much faster. EditLogFileOutputStream.SetShouldSkipFsyncForTesting(true); }
static TestNameNodeRecovery() { recoverStartOpt.SetForce(MetaRecoveryContext.ForceAll); EditLogFileOutputStream.SetShouldSkipFsyncForTesting(true); }
static TestFileJournalManager() { // No need to fsync for the purposes of tests. This makes // the tests run much faster. EditLogFileOutputStream.SetShouldSkipFsyncForTesting(true); }