diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 7e8475948e2..c9ecac8f8de 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -464,6 +464,9 @@ Release 2.0.3-alpha - Unreleased HDFS-1322. Document umask in DistributedFileSystem#mkdirs javadocs. (Colin Patrick McCabe via eli) + HDFS-4038. Override toString() for BookKeeperEditLogInputStream. + (Vinay via umamahesh) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/src/main/java/org/apache/hadoop/contrib/bkjournal/BookKeeperEditLogInputStream.java b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/src/main/java/org/apache/hadoop/contrib/bkjournal/BookKeeperEditLogInputStream.java index 15d0c02daf0..35c09eb1127 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/src/main/java/org/apache/hadoop/contrib/bkjournal/BookKeeperEditLogInputStream.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/src/main/java/org/apache/hadoop/contrib/bkjournal/BookKeeperEditLogInputStream.java @@ -129,8 +129,9 @@ class BookKeeperEditLogInputStream extends EditLogInputStream { @Override public String getName() { - return String.format("BookKeeper[%s,first=%d,last=%d]", - lh.toString(), firstTxId, lastTxId); + return String.format( + "BookKeeperLedger[ledgerId=%d,firstTxId=%d,lastTxId=%d]", lh.getId(), + firstTxId, lastTxId); } @Override @@ -157,6 +158,11 @@ class BookKeeperEditLogInputStream extends EditLogInputStream { } } + @Override + public String toString() { + return ("BookKeeperEditLogInputStream {" + this.getName() + "}"); + } + /** * Input stream implementation which can be used by * FSEditLogOp.Reader