Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.5.1
Description
When I was looking at some replica loss issue, I got the following info from log
2014-10-13 01:54:53,104 INFO BlockStateChange: BLOCK* Removing stale replica from location x.x.x.x
I could just know that a replica is removed, but I don't know which block and its timestamp. I need to know the id and timestamp of the block from the log file.
So it's better to add more info including block id and timestamp to the code snippet
for (ReplicaUnderConstruction r : replicas) { if (genStamp != r.getGenerationStamp()) { r.getExpectedLocation().removeBlock(this); NameNode.blockStateChangeLog.info("BLOCK* Removing stale replica " + "from location: " + r.getExpectedLocation()); } }