LOG.info("reg: bpid=" + "; name=" + bpos.bpRegistration.name + "; sid="
+ bpos.bpRegistration.storageID + "; nna=" + bpos.nnAddr);
}
// 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);
cluster.shutdown();
// Ensure all the BPOfferService threads are shutdown
assertEquals(0, dn.getAllBpOs().length);