mattisonchao opened a new pull request, #16910:
URL: https://github.com/apache/pulsar/pull/16910

   ### Motivation
   
   Relate issue: #16909 
   
   
https://github.com/apache/pulsar/blob/3f109d6cb7f128a5f8331e33477fd69c3c26d531/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java#L1375-L1442
   
   We have to avoid using `ArrayList` in the concurrent environment.
   
   ### Modifications
   
   - Use `synchronizedList` to instead of `ArrayList`
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   ### Documentation
   
   - [x] `doc-not-needed` 
   (Please explain why)
     


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

Reply via email to