Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent blocking event loop thread by replacing ArrayDeque with HashIndexedQueue #2953

Merged

Conversation

okg-cxf
Copy link
Contributor

@okg-cxf okg-cxf commented Aug 8, 2024

Closes #2937

Make sure that:

  • You have read the contribution guidelines.
  • You have created a feature request first to discuss your contribution intent. Please reference the feature request ticket number in the pull request.
  • You applied code formatting rules using the mvn formatter:format target. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.

@okg-cxf okg-cxf changed the title fix: prevent blocking event loop thread fix: prevent blocking event loop thread by replacing ArrayDeque with HashIndexedQueue Aug 8, 2024
okg-cxf and others added 2 commits December 6, 2024 15:31
…g LinkedHashSetQueue instead of ArrayDeque for CommandHandler#stack
@tishun tishun force-pushed the fix/avoid-long-block-during-disconnection branch from d3662c0 to c6f045c Compare December 6, 2024 13:37
@tishun
Copy link
Collaborator

tishun commented Dec 6, 2024

@okg-cxf thanks for the contribution!

I've enabled your solution by default. If there are issues with it we can ask users to disable it until we provide a fix.

@tishun tishun added the type: feature A new feature label Dec 6, 2024
@tishun tishun merged commit 230a03a into redis:main Dec 6, 2024
4 checks passed
thachlp pushed a commit to thachlp/lettuce that referenced this pull request Dec 31, 2024
…HashIndexedQueue (redis#2953)

* fix: prevent long stall during reconnection/disconnection by providing LinkedHashSetQueue instead of ArrayDeque for CommandHandler#stack

* Polishing

* Missed out a file

---------

Co-authored-by: Tihomir Mateev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

event loop thread gets blocked during disconnection/reconnection
2 participants