Description
It seems to be nice to add a toString() method for DatanodeStorage class, so we can print out its key info easier while doing debuging.
Another thing is, in the end of BlockManager#processReport, there is the following message,
blockLog.info("BLOCK* processReport: from storage " + storage.getStorageID() + " node " + nodeID + ", blocks: " + newReport.getNumberOfBlocks() + ", processing time: " + (endTime - startTime) + " msecs"); return !node.hasStaleStorages();
We could add node.hasStaleStorages() to the log, and possibly replace storage.getSorateID() with the suggested storage.toString().
Any comments? thanks.