Skip to content

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

@peng-lin

Description

@peng-lin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions