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:
parent
879d5917c9
commit
1429b373c6
@ -64,6 +64,7 @@ public class ReplicationHLogReaderManager {
|
|||||||
// Detect if this is a new file, if so get a new reader else
|
// 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
|
// reset the current reader so that we see the new data
|
||||||
if (this.reader == null || !this.lastPath.equals(path)) {
|
if (this.reader == null || !this.lastPath.equals(path)) {
|
||||||
|
this.closeReader();
|
||||||
this.reader = HLogFactory.createReader(this.fs, path, this.conf);
|
this.reader = HLogFactory.createReader(this.fs, path, this.conf);
|
||||||
this.lastPath = path;
|
this.lastPath = path;
|
||||||
} else {
|
} else {
|
||||||
|
@ -365,6 +365,7 @@ public class ReplicationSource extends Thread
|
|||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
|
this.reader = null;
|
||||||
this.repLogReader.closeReader();
|
this.repLogReader.closeReader();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
gotIOE = true;
|
gotIOE = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user