HBASE-20271 ReplicationSourceWALReader.switched should use the file name instead of the path object directly
This commit is contained in:
parent
64ccd2b295
commit
c44e886860
|
@ -174,7 +174,8 @@ class ReplicationSourceWALReader extends Thread {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static final boolean switched(WALEntryStream entryStream, Path path) {
|
protected static final boolean switched(WALEntryStream entryStream, Path path) {
|
||||||
return !path.equals(entryStream.getCurrentPath());
|
Path newPath = entryStream.getCurrentPath();
|
||||||
|
return newPath == null || !path.getName().equals(newPath.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected WALEntryBatch readWALEntries(WALEntryStream entryStream)
|
protected WALEntryBatch readWALEntries(WALEntryStream entryStream)
|
||||||
|
|
Loading…
Reference in New Issue