HDFS-9947. Block#toString should not output information from derived classes (cmccabe)
This commit is contained in:
parent
bd5556ba12
commit
9a43094e12
@ -162,7 +162,9 @@ public void setGenerationStamp(long stamp) {
|
||||
*/
|
||||
public static String toString(final Block b) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
b.appendStringTo(sb);
|
||||
sb.append(BLOCK_FILE_PREFIX).
|
||||
append(b.blockId).append("_").
|
||||
append(b.generationStamp);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user