shahrs87 commented on code in PR #5521:
URL: https://github.com/apache/hbase/pull/5521#discussion_r1393059493
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java:
##########
@@ -259,10 +259,11 @@ private boolean readNextEntryAndRecordReaderPosition()
throws IOException {
Entry readEntry = reader.next();
long readerPos = reader.getPosition();
OptionalLong fileLength;
- if (logQueue.getQueueSize(walGroupId) > 1) {
+ if (logQueue.getQueueSize(walGroupId) > 2) {
Review Comment:
Checking for less than equal to 2 log files in the queue because it is
possible that we are doing this check just when the WAL is rolled and the
reader has not read the trailer bytes of the old WAL.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]