Apache9 commented on code in PR #4756:
URL: https://github.com/apache/hbase/pull/4756#discussion_r961713003
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java:
##########
@@ -255,15 +255,21 @@ private void dequeueCurrentLog() throws IOException {
* Returns whether the file is opened for writing.
*/
private boolean readNextEntryAndRecordReaderPosition() throws IOException {
+ long prePos = reader.getPosition();
Review Comment:
I think this is a nice improvement that we can return earlier when there is
no data can be read. But I do not get the point that why here if we try to read
more data can lead to a problem? We could still hit EOFException when the
remaining data is not enough for a whole entry?
--
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]