Is Jedis 2.5.2 fully compatible with redis 2.8.x, 3.x.x and above*? #2405
Replies: 8 comments
-
Jedis 3.0.0 has some breaking changes |
Beta Was this translation helpful? Give feedback.
-
I am running Redis server v=3.2.100. Trying to subscribe to a channel with the latest Jedis freezes the system although method onSubscribe is called: no progress after calling jSubscriber.subscribe(jedisPubSub, "channel"), i.e. no instructions executed after this call and method onMessage is not called although messages are published into the appropriate channel. Is it due to the breaking changes that you have mentioned? Do you know when the update will be available that solves such issues? |
Beta Was this translation helpful? Give feedback.
-
No, that should work, can you please post a full recreation? |
Beta Was this translation helpful? Give feedback.
-
The structure is the following.
onSubscribe is executed. Also if use jSubscriber after creation to write data into the Redis instance it goes well and I see the data inside the DB. doSomething() is never called. |
Beta Was this translation helpful? Give feedback.
-
I think you need a separate thread for executing subscribe as the client has to react on coming messages. So you could try to add some code like
|
Beta Was this translation helpful? Give feedback.
-
Yeah this isn't really clear, would be great to get this added to the jdoc that it blocks the current thread. |
Beta Was this translation helpful? Give feedback.
-
Hello. I have same question on Redis 4.x. Should I separate the question for this? |
Beta Was this translation helpful? Give feedback.
-
@rkimsb2 Sure! Please mention which incompatibility you are having. It would be hard to help with a generic question. |
Beta Was this translation helpful? Give feedback.
-
Is Jedis 2.5.2 fully compatible with redis 2.8.x, 3.x.x and above*?
Beta Was this translation helpful? Give feedback.
All reactions