WorkerStorage ws = new WorkerStorage(mMasterAddress, mWorkerDataFolder, WORKER_CAPACITY_BYTES);
try {
ws.initialize(mWorkerAddress);
String orpahnblock = ws.getUfsOrphansFolder() + TachyonURI.SEPARATOR + bid;
UnderFileSystem ufs = UnderFileSystem.get(orpahnblock);
Assert.assertFalse("Orphan block file isn't deleted from workerDataFolder", new File(
mWorkerDataFolder + TachyonURI.SEPARATOR + bid).exists());
Assert.assertTrue("UFS hasn't the orphan block file ", ufs.exists(orpahnblock));
Assert.assertTrue("Orpahblock file size is changed", ufs.getFileSize(orpahnblock) == filesize);
} finally {
ws.stop();
}
}