HBASE-7944 Addendum (Jeffrey Zhong)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1453059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
larsh 2013-03-05 22:48:25 +00:00
parent 879d5917c9
commit 1429b373c6
2 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ public class ReplicationHLogReaderManager {
// Detect if this is a new file, if so get a new reader else
// reset the current reader so that we see the new data
if (this.reader == null || !this.lastPath.equals(path)) {
this.closeReader();
this.reader = HLogFactory.createReader(this.fs, path, this.conf);
this.lastPath = path;
} else {

View File

@ -365,6 +365,7 @@ public class ReplicationSource extends Thread
}
} finally {
try {
this.reader = null;
this.repLogReader.closeReader();
} catch (IOException e) {
gotIOE = true;