Skip to content

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