Examples of blockReport()


Examples of org.apache.hadoop.hdfs.server.datanode.DataNode.BPOfferService.blockReport()

      }

      // try block report
      BPOfferService bpos1 = dn.getAllBpOs()[0];
      bpos1.lastBlockReport = 0;
      bpos1.blockReport();

      assertEquals("wrong nn address", bpos1.nnAddr,
          nn1.getNameNodeAddress());
      assertEquals("wrong bpid", bpos1.getBlockPoolId(), bpid1);
      assertEquals("wrong cid", dn.getClusterId(), cid1);
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.NameNode.blockReport()

          // leave one block reporting the correct size
          b.setNumBytes(BLOCK_SIZE + 1);
        }
        long[] blockReport =
          BlockListAsLongs.convertToArrayLongs(blocksToReport);
        namenode.blockReport(dataNodes.get(i).getDNRegistrationForNS(nsId), blockReport);
      }
      for (int i = 0; i < locations.locatedBlockCount(); i++) {
        Block b = locations.get(i).getBlock();
        // verify that the block size is not changed by the bogus report
        if (i == locations.locatedBlockCount() - 1) {
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.NameNode.blockReport()

          // leave one block reporting the correct size
          b.setNumBytes(BLOCK_SIZE + 1);
        }
        long[] blockReport = BlockListAsLongs
            .convertToArrayLongs(blocksToReport);
        namenode.blockReport(dataNodes.get(i).getDNRegistrationForNS(nsId),
            blockReport);
      }
      for (int i = 0; i < locations.locatedBlockCount(); i++) {
        Block b = locations.get(i).getBlock();
        // verify that the block size is not changed by the bogus report
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol.blockReport()

    // Ensure blockReport from dead datanode is rejected with IOException
    StorageBlockReport[] report = { new StorageBlockReport(
        new DatanodeStorage(reg.getStorageID()),
        new long[] { 0L, 0L, 0L }) };
    try {
      dnp.blockReport(reg, poolId, report);
      Assert.fail("Expected IOException is not thrown");
    } catch (IOException ex) {
      // Expected
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol.blockReport()

    }

    // Ensure blockReport from dead datanode is rejected with IOException
    long[] blockReport = new long[] { 0L, 0L, 0L };
    try {
      dnp.blockReport(reg, blockReport);
      Assert.fail("Expected IOException is not thrown");
    } catch (IOException ex) {
      // Expected
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol.blockReport()

    }

    // Ensure blockReport from dead datanode is rejected with IOException
    long[] blockReport = new long[] { 0L, 0L, 0L };
    try {
      dnp.blockReport(reg, poolId, blockReport);
      Assert.fail("Expected IOException is not thrown");
    } catch (IOException ex) {
      // Expected
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol.blockReport()

    }

    // Ensure blockReport from dead datanode is rejected with IOException
    long[] blockReport = new long[] { 0L, 0L, 0L };
    try {
      dnp.blockReport(reg, poolId, blockReport);
      Assert.fail("Expected IOException is not thrown");
    } catch (IOException ex) {
      // Expected
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol.blockReport()

    }

    // Ensure blockReport from dead datanode is rejected with IOException
    long[] blockReport = new long[] { 0L, 0L, 0L };
    try {
      dnp.blockReport(reg, blockReport);
      Assert.fail("Expected IOException is not thrown");
    } catch (IOException ex) {
      // Expected
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol.blockReport()

    // Ensure blockReport from dead datanode is rejected with IOException
    StorageBlockReport[] report = { new StorageBlockReport(
        new DatanodeStorage(reg.getStorageID()),
        new long[] { 0L, 0L, 0L }) };
    try {
      dnp.blockReport(reg, poolId, report);
      fail("Expected IOException is not thrown");
    } catch (IOException ex) {
      // Expected
    }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol.blockReport()

    // Ensure blockReport from dead datanode is rejected with IOException
    StorageBlockReport[] report = { new StorageBlockReport(
        new DatanodeStorage(reg.getDatanodeUuid()),
        new long[] { 0L, 0L, 0L }) };
    try {
      dnp.blockReport(reg, poolId, report);
      fail("Expected IOException is not thrown");
    } catch (IOException ex) {
      // Expected
    }
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.