Преглед изворни кода

ZOOKEEPER-668. Close method in LedgerInputStream doesn't do anything (flavio via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/zookeeper/trunk@911678 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar пре 15 година
родитељ
комит
75abbb34e2

+ 3 - 0
CHANGES.txt

@@ -223,6 +223,9 @@ BUGFIXES:
 
   ZOOKEEPER-672. typo nits across documentation (Kay Kay via mahadev)
 
+  ZOOKEEPER-668. Close method in LedgerInputStream doesn't do anything (flavio 
+  via mahadev)
+
 IMPROVEMENTS:
   ZOOKEEPER-473. cleanup junit tests to eliminate false positives due to
   "socket reuse" and failure to close client (phunt via mahadev)

+ 5 - 0
src/contrib/bookkeeper/src/java/org/apache/bookkeeper/streaming/LedgerInputStream.java

@@ -74,6 +74,11 @@ public class LedgerInputStream extends InputStream {
         ledgerSeq = lh.readEntries(0, lastEntry);
     }
 
+    /**
+     * Method close currently doesn't do anything. The application
+     * is supposed to open and close the ledger handle backing up 
+     * a stream ({@link LedgerHandle}).
+     */
     @Override
     public void close() {
         // do nothing