Ejemplo n.º 1
0
        private bool IsTrashRootPresent()
        {
            // Trash is disabled; trash root does not exist
            BlockPoolSliceStorage bps = dn0.GetStorage().GetBPStorage(blockPoolId);

            return(bps.TrashEnabled());
        }
Ejemplo n.º 2
0
        /// <exception cref="System.Exception"/>
        private void FinalizeRollingUpgrade()
        {
            Log.Info("Finalizing rolling upgrade");
            DFSAdmin dfsadmin = new DFSAdmin(conf);

            TestRollingUpgrade.RunCmd(dfsadmin, true, "-rollingUpgrade", "finalize");
            TriggerHeartBeats();
            // Ensure datanode rolling upgrade is started
            NUnit.Framework.Assert.IsFalse(dn0.GetFSDataset().TrashEnabled(blockPoolId));
            BlockPoolSliceStorage bps = dn0.GetStorage().GetBPStorage(blockPoolId);

            NUnit.Framework.Assert.IsFalse(bps.TrashEnabled());
        }