Skip to content

redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused #2345

@yeahCaesar

Description

@yeahCaesar

Expected behavior

Jedis works normally

Actual behavior

Throw exception: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused

Steps to reproduce:

Please create a reproducible case of your problem. Make sure
that case repeats consistently and it's not random
1.create a redis cluster with two servers , 3 master nodes on one server, 3 slave nodes on another
2.kill 3 slave nodes
3.jedis client throws exception , but not all jedis connections

Redis / Jedis Configuration

Jedis version: 2.9.0

Redis version: Redis server v=5.0.3 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64

Java version: 1.8.0

reidscluster04

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