Apache9 commented on a change in pull request #437: HBASE-22539 WAL corruption 
due to early DBBs re-use when Durability.A…
URL: https://github.com/apache/hbase/pull/437#discussion_r310389034
 
 

 ##########
 File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AsyncFSWAL.java
 ##########
 @@ -487,6 +490,7 @@ private void drainNonMarkerEditsAndFailSyncs() {
     while (iter.hasNext()) {
       FSWALEntry entry = iter.next();
       if (!entry.getEdit().isMetaEdit()) {
+        entry.getRpcCall().ifPresent(ServerCall::releaseByWAL);
 
 Review comment:
   No, if there are errors when syncing, we will put all the entries in 
unackedAppends back to toWriteAppends, and there we should not release the 
entries.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to