public virtual void Shutdown()
 {
     IOUtils.Cleanup(Log, Sharpen.Collections.ToArray(toClose, new IDisposable[0]));
     // Should not leak clients between tests -- this can cause flaky tests.
     // (See HDFS-4643)
     GenericTestUtils.AssertNoThreadsMatching(".*IPC Client.*");
     if (cluster != null)
     {
         cluster.Shutdown();
     }
 }
Example #2
0
        /// <exception cref="System.Exception"/>
        public virtual void TestEditLogAutoroll()
        {
            // Make some edits
            long startTxId = editLog.GetCurSegmentTxId();

            for (int i = 0; i < 11; i++)
            {
                fs.Mkdirs(new Path("testEditLogAutoroll-" + i));
            }
            // Wait for the NN to autoroll
            GenericTestUtils.WaitFor(new _Supplier_114(this, startTxId), 1000, 5000);
            // Transition to standby and make sure the roller stopped
            nn0.TransitionToStandby();
            GenericTestUtils.AssertNoThreadsMatching(".*" + typeof(FSNamesystem.NameNodeEditLogRoller
                                                                   ).Name + ".*");
        }