From 19ae4429f9a2807548bb4b9ff296521fbdbbb2bc Mon Sep 17 00:00:00 2001 From: Hanisha Koneru Date: Wed, 7 Mar 2018 14:17:10 -0800 Subject: [PATCH] HDFS-13225. StripeReader#checkMissingBlocks() 's IOException info is incomplete. Contributed by lufei. --- .../apache/hadoop/hdfs/protocol/LocatedBlocks.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/LocatedBlocks.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/LocatedBlocks.java index e7d5b3ae4c..baf59ce613 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/LocatedBlocks.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/LocatedBlocks.java @@ -188,11 +188,11 @@ public static int getInsertIndex(int binSearchResult) { @Override public String toString() { - return getClass().getSimpleName() + "{" + "\n fileLength=" + fileLength - + "\n underConstruction=" + underConstruction - + "\n blocks=" + blocks - + "\n lastLocatedBlock=" + lastLocatedBlock - + "\n isLastBlockComplete=" + isLastBlockComplete - + "\n ecPolicy=" + ecPolicy + "}"; + return getClass().getSimpleName() + "{" + "; fileLength=" + fileLength + + "; underConstruction=" + underConstruction + + "; blocks=" + blocks + + "; lastLocatedBlock=" + lastLocatedBlock + + "; isLastBlockComplete=" + isLastBlockComplete + + "; ecPolicy=" + ecPolicy + "}"; } }