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

Improve safety of MultiNodePipelineBase under multi-thread #3330

Merged
merged 3 commits into from
Mar 22, 2023

Conversation

stillerrr
Copy link
Contributor

MultiNodePipelineBase is not safe in multi-thread when it used the same nodeKey to call appendCommand()

it would cause connection leak,because the map: connections just can record one connection for one nodeKey and there is no lock to protect it;

@sazzad16 sazzad16 changed the title Make sure MultiNodePipelineBase is safe under multi-thread Improve safety of MultiNodePipelineBase under multi-thread Mar 22, 2023
@sazzad16 sazzad16 merged commit 4a8b9e7 into redis:master Mar 22, 2023
banker pushed a commit to banker/jedis that referenced this pull request Mar 28, 2023
* Make sure MultiNodePipelineBase is safe under multi-thread

* Edit log message

---------

Co-authored-by: Stiller <[email protected]>
Co-authored-by: M Sazzadul Hoque <[email protected]>
@stillerrr stillerrr deleted the my_branch branch April 15, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants