Xushaohong opened a new pull request, #4319:
URL: https://github.com/apache/ozone/pull/4319

   ## What changes were proposed in this pull request?
   
   Found by  
https://issues.apache.org/jira/browse/HDDS-8031?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
   
   The issue is found due to the lack of lock protection.
   The **addToBuffer/removeFromBuffer** may be concurrently called with 
**flush**, which may add KV into a closed batch and cause the JVM crash.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-8036
   
   ## How was this patch tested?
   Original Error test:
   https://github.com/Xushaohong/ozone/actions/runs/4280636237/jobs/7452661792
   
   POC fix test:
   https://github.com/Xushaohong/ozone/actions/runs/4281772162/jobs/7455208505
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to