@Test(timeout=60000) public void testEOFWithBlockReaderLocal() throws Exception { ShortCircuitTestContext testContext = new ShortCircuitTestContext("testEOFWithBlockReaderLocal"); try { final Configuration conf = testContext.newConfiguration(); conf.setLong(DFSConfigKeys.DFS_CLIENT_CACHE_READAHEAD, BLOCK_SIZE); MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).numDataNodes(1) .format(true).build(); testEOF(cluster, 1); testEOF(cluster, 14); testEOF(cluster, 10000); cluster.shutdown(); } finally { testContext.close(); } }
@Test(timeout=60000) public void testEOFWithBlockReaderLocal() throws Exception { ShortCircuitTestContext testContext = new ShortCircuitTestContext("testEOFWithBlockReaderLocal"); try { final Configuration conf = testContext.newConfiguration(); conf.setLong(HdfsClientConfigKeys.DFS_CLIENT_CACHE_READAHEAD, BLOCK_SIZE); MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).numDataNodes(1) .format(true).build(); testEOF(cluster, 1); testEOF(cluster, 14); testEOF(cluster, 10000); cluster.shutdown(); } finally { testContext.close(); } }