@AfterClass public static void shutdownIOManager() { ioManager.shutdown(); }
@BeforeClass public static void setup() { ioManager = new IOManagerAsync(); }
private static void checkNoTempFilesRemain() { // validate that all temp files have been removed for (File dir : ioManager.getSpillingDirectories()) { for (String file : dir.list()) { if (file != null && !(file.equals(".") || file.equals(".."))) { fail("barrier buffer did not clean up temp files. remaining file: " + file); } } } } }
ioMan = new IOManagerAsync(); ioMan.shutdown();
private void shutdownIOManager() throws Exception { this.mockEnv.getIOManager().shutdown(); Assert.assertTrue("IO Manager has not properly shut down.", this.mockEnv.getIOManager().isProperlyShutDown()); }
ioManager.getSpillingDirectoriesPaths());
ioMan = new IOManagerAsync(); ioMan.shutdown();
/** * Creates a new buffer spiller, spilling to one of the I/O manager's temp directories. * * @param ioManager The I/O manager for access to the temp directories. * @param pageSize The page size used to re-create spilled buffers. * @throws IOException Thrown if the temp files for spilling cannot be initialized. */ public BufferSpiller(IOManager ioManager, int pageSize) throws IOException { this.pageSize = pageSize; this.readBuffer = ByteBuffer.allocateDirect(READ_BUFFER_SIZE); this.readBuffer.order(ByteOrder.LITTLE_ENDIAN); this.headBuffer = ByteBuffer.allocateDirect(16); this.headBuffer.order(ByteOrder.LITTLE_ENDIAN); File[] tempDirs = ioManager.getSpillingDirectories(); this.tempDir = tempDirs[DIRECTORY_INDEX.getAndIncrement() % tempDirs.length]; byte[] rndBytes = new byte[32]; ThreadLocalRandom.current().nextBytes(rndBytes); this.spillFilePrefix = StringUtils.byteToHexString(rndBytes) + '.'; // prepare for first contents createSpillingChannel(); }
@BeforeClass public static void setupIOManager() { ioManager = new IOManagerAsync(); }
@AfterClass public static void shutdownIOManager() { ioManager.shutdown(); }
ioManager.getSpillingDirectoriesPaths());
final IOManager ioMan = new IOManagerAsync(); ioMan.shutdown();
private static void checkNoTempFilesRemain(IOManager ioManager) { for (File dir : ioManager.getSpillingDirectories()) { for (String file : dir.list()) { if (file != null && !(file.equals(".") || file.equals(".."))) { fail("hash table did not clean up temp files. remaining file: " + file); } } } } }
@BeforeClass public static void setup() { ioManager = new IOManagerAsync(); }
@AfterClass public static void shutdownIOManager() { ioManager.shutdown(); }
NetworkBufferPool networkBufferPool2 = null; try { ioMan = new IOManagerAsync(); ioMan.shutdown();
private static void checkNoTempFilesRemain() { // validate that all temp files have been removed for (File dir : ioManager.getSpillingDirectories()) { for (String file : dir.list()) { if (file != null && !(file.equals(".") || file.equals(".."))) { fail("barrier buffer did not clean up temp files. remaining file: " + file); } } } }
ioManager = new IOManagerAsync();
@After public void checkNoTempFilesRemain() { // validate that all temp files have been removed for (File dir : ioManager.getSpillingDirectories()) { for (String file : dir.list()) { if (file != null && !(file.equals(".") || file.equals(".."))) { fail("barrier buffer did not clean up temp files. remaining file: " + file); } } } }
initializedDbBasePaths = env.getIOManager().getSpillingDirectories();