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

   
   ### Motivation
   
   Now, `GrowableArrayBlockingQueue` may be duplicate consumption data when 
concurrency use `drainTo`/`clear` and `poll`, we can acquire tailLock to avoid 
it.
   
   ### Modifications
   
   Add acquire tailLock in the `drainTo`/`clear`.
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   ### Documentation
   
   Check the box below or label this PR directly.
   
   Need to update docs? 
   
   - [ ] `doc-required` 
   (Your PR needs to update docs and you will update later)
     
   - [x] `doc-not-needed` 
   (Please explain why)
     
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)


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