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

BUG/Connection Leak:cannot close SentinelListener connection in a JedisSentineled/JedisSentinelPool mode when executing method close #3839

Open
peng-lin opened this issue May 17, 2024 · 0 comments

Comments

@peng-lin
Copy link

peng-lin commented May 17, 2024

Expected behavior

Close sentinelListener when excuting method jedisSentineled.close().

Actual behavior

Cannot close sentinelListener thread

Steps to reproduce:

Please create a reproducible case of your problem. Make sure
that case repeats consistently and it's not random

  1. init JedisSentineled object and close it immediately in a while true loop or in a multi-threaded concurrent environment
  2. Root Cause:concurrent problems;thread safety
problem-0

problem-1

problem-2

Redis / Jedis Configuration

Jedis version: all exists this bug

Redis version:

Java version:

how to resolve:

see the pictures

resolve

@peng-lin peng-lin changed the title Jedis4 cannot close SentinelListener connection completely in a JedisSentineled mode when executing method close ,caused connection leak BUG/Connection Leak:cannot close SentinelListener connectio in a JedisSentineled/JedisSentinelPool mode when executing method close Nov 6, 2024
@peng-lin peng-lin changed the title BUG/Connection Leak:cannot close SentinelListener connectio in a JedisSentineled/JedisSentinelPool mode when executing method close BUG/Connection Leak:cannot close SentinelListener connection in a JedisSentineled/JedisSentinelPool mode when executing method close Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant