You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "asad-awadia (via GitHub)" <gi...@apache.org> on 2024/03/11 14:37:47 UTC
[I] PubSub with Lettuce not working as expected [kvrocks]
asad-awadia opened a new issue, #2156:
URL: https://github.com/apache/kvrocks/issues/2156
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
### Version
KVRocks version 2.8.0 and nightly
### Minimal reproduce step
Clone : https://gitlab.com/asad-awadia/kotlin-server-app - if a project/environment is required
```
fun main() {
val redisClient = RedisClient.create(RedisURI.builder().withHost("0.0.0.0").withPort(6666).build())
val pubSub = redisClient.connectPubSub()
pubSub.addListener { println("received push message ${it.content}") }
pubSub.sync().subscribe("channel")
redisClient.connect().sync().publish("channel", "foo")
Thread.sleep(5000)
}
```
### What did you expect to see?
The message callback listener is invoked with the message sent in the subscribe call
### What did you see instead?
No message is received - the listener callback is not invoked
### Anything Else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] PubSub with Lettuce not working as expected [kvrocks]
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk closed issue #2156: PubSub with Lettuce not working as expected
URL: https://github.com/apache/kvrocks/issues/2156
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] PubSub with Lettuce not working as expected [kvrocks]
Posted by "asad-awadia (via GitHub)" <gi...@apache.org>.
asad-awadia commented on issue #2156:
URL: https://github.com/apache/kvrocks/issues/2156#issuecomment-1988680336
are you referring to the publish call? or the subscribe call?
https://github.com/redis/redis/blob/7.2.2/src/pubsub.c#L147 - seems to do the same
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] PubSub with Lettuce not working as expected [kvrocks]
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on issue #2156:
URL: https://github.com/apache/kvrocks/issues/2156#issuecomment-1988650816
@asad-awadia Thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] PubSub with Lettuce not working as expected [kvrocks]
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on issue #2156:
URL: https://github.com/apache/kvrocks/issues/2156#issuecomment-1989822368
@asad-awadia Yes, Kvrocks doesn't support the PUSH yet, but PubSub works in RESP2 without depending on the PUSH protocol.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] PubSub with Lettuce not working as expected [kvrocks]
Posted by "asad-awadia (via GitHub)" <gi...@apache.org>.
asad-awadia commented on issue #2156:
URL: https://github.com/apache/kvrocks/issues/2156#issuecomment-1989815705
push doesnt work with resp2 either - just tried it on 2.8.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] PubSub with Lettuce not working as expected [kvrocks]
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on issue #2156:
URL: https://github.com/apache/kvrocks/issues/2156#issuecomment-1988716232
@asad-awadia Thanks for your correction. It seems a bug related to RESP3, I will investigate it while I get time soon.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org