Package org.apache.hadoop.hdfs.server.datanode.FSDataset

Examples of org.apache.hadoop.hdfs.server.datanode.FSDataset.AsyncBlockReport.start()


  @Test(timeout=20000)
  public void testAsyncReport() throws Exception {
    FSDataset mock = Mockito.mock(FSDataset.class);
    AsyncBlockReport abr = new FSDataset.AsyncBlockReport(mock);
    abr.start();
    try {
      for (int i = 0; i < 3; i++) {
        HashMap<Block, File> mockResult = new HashMap<Block, File>();
        Mockito.doReturn(mockResult).when(mock).roughBlockScan();
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.