sunhelly commented on a change in pull request #4232: URL: https://github.com/apache/hbase/pull/4232#discussion_r827780740
########## File path: hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java ########## @@ -249,7 +249,7 @@ private boolean checkAllBytesParsed() throws IOException { + ", which is too far away from reported file length " + stat.getLen() + ". Restarting WAL reading (see HBASE-15983 for details). " + getCurrentPathStat()); setPosition(0); - resetReader(); + openReader(currentPath, true); Review comment: How about add a resetCompressionContext() method in the implementation of Reader.reset()? That means when the reader is reset, the compressionContext needs also be reset. And then the resetReader() can be kept everywhere? -- 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: issues-unsubscr...@hbase.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org