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

   ### Motivation
   
   Version: `3.0.7`
   
   The variable `recentlyJoinedConsumers` of 
`PersistentStickyKeyDispatcherMultipleConsumers` is used to guarantee the 
delivery order of Key_Shared subscriptions, which is not a thread-safety 
collection.
   
   Almost all operations that access this collection are in a lock block except 
one place that the current PR fixes, this place caused a concurrency modifying 
and led the collection to go to a wrong state, the delivery is eventually stuck.
   
   **Issue**: the item `#113068( list.tail )` and `#113069 (list.tail.before)` 
can not be funded in the table, which means the collection is in a wrong state
   ![Screenshot 2024-12-31 at 13 00 
39](https://github.com/user-attachments/assets/55cefa8f-12e6-4a90-ae7c-1fae1f67d630)
   ![Screenshot 2024-12-31 at 13 00 
48](https://github.com/user-attachments/assets/e6211e1a-f2a5-4fd0-881a-dbf376a2c865)
   ![Screenshot 2024-12-31 at 13 01 
03](https://github.com/user-attachments/assets/40bf71ad-81c8-40eb-bd99-2caa63f06a9a)
   
   ### Modifications
   
   fix the issue
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: x
   


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