Issue with subscribeAsMessages Method in Quarkus Redis Client #42079
Labels
area/redis
kind/bug
Something isn't working
triage/needs-reproducer
We are waiting for a reproducer.
Milestone
Describe the bug
I'm experiencing an issue with the subscribeAsMessages method in Quarkus. When attempting to subscribe to Redis channels using subscribeAsMessages, the subscription appears to occur, but the processMessage method is never called when the channel receives events. In contrast, using the subscribe method works correctly.
Expected behavior
The subscribeAsMessages method should successfully subscribe to the Redis channels and trigger the processMessage method when events are received on the subscribed channels.
Actual behavior
The subscribeAsMessages method subscribes to the channels, but the processMessage method is never invoked when events are received on those channels. The subscribe method, however, works as expected and correctly invokes processMessage.
How to Reproduce?
Both methods utilize a
private final ReactivePubSubCommands<byte[]> redisPubSub.
Working code:
Non-working code:
Output of
uname -a
orver
Linux latitude 6.5.0-44-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jun 18 14:36:16 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "21.0.1" 2023-10-17 LTS
Quarkus version or git rev
Quarkus 3.12.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.7
Additional information
The documentation lacks examples for Pub/Sub using subscribeAsMessages, which could be very helpful in understanding and correctly implementing this feature.
The text was updated successfully, but these errors were encountered: