Skip to content

subscribe is not working when the client cache is enabled #4023

@qingdaoheze

Description

@qingdaoheze

Expected behavior

subscribe can work normally.

Actual behavior

Blocked forever and can't receive any message

Steps to reproduce:

Please create a reproducible case of your problem. Make sure
that case repeats consistently and it's not random
1.Create an UnifiedJedis with the client cache
2.subscribe

Redis / Jedis Configuration

    private UnifiedJedis buildUnifiedJedis() {
        HostAndPort startNode = HostAndPort.from("localhost:6379");
        JedisClientConfig jedisClientConfig = DefaultJedisClientConfig.builder()
                .resp3()
                .build();
        CacheConfig cacheConfig = getCacheConfig();
        Cache cache = CacheFactory.getCache(cacheConfig);

       return new UnifiedJedis(startNode, jedisClientConfig, cache);
    }

Jedis version:

5.2.0

Redis version:

7.4.1

Java version:

JDK 17

Metadata

Metadata

Assignees

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