コード例 #1
0
 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);
 }
コード例 #2
0
        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();
        }
コード例 #3
0
 public static void DisableFsync()
 {
     // No need to fsync for the purposes of tests. This makes
     // the tests run much faster.
     EditLogFileOutputStream.SetShouldSkipFsyncForTesting(true);
 }
コード例 #4
0
 static TestNameNodeRecovery()
 {
     recoverStartOpt.SetForce(MetaRecoveryContext.ForceAll);
     EditLogFileOutputStream.SetShouldSkipFsyncForTesting(true);
 }
コード例 #5
0
 static TestFileJournalManager()
 {
     // No need to fsync for the purposes of tests. This makes
     // the tests run much faster.
     EditLogFileOutputStream.SetShouldSkipFsyncForTesting(true);
 }