bharathv commented on a change in pull request #3332: URL: https://github.com/apache/hbase/pull/3332#discussion_r642784660
########## File path: hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AbstractFSWAL.java ########## @@ -1190,9 +1201,18 @@ public OptionalLong getLogFileSizeIfBeingWritten(Path path) { try { Path currentPath = getOldPath(); if (path.equals(currentPath)) { + // Currently active path. W writer = this.writer; return writer != null ? OptionalLong.of(writer.getSyncedLength()) : OptionalLong.empty(); } else { + W temp = inflightWALClosures.get(path.getName()); + if (temp != null) { Review comment: Thanks for taking a look @anoopsjohn -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org