Open smyrgeorge opened 11 months ago
@smyrgeorge Hi, thanks for reporting. We will look into this till FRI.
Just forgot to mention that I'm using the 2.7.0.rc
version.
Honestly I don't remember what's 2.7.0.rc
, looks like it was some development of something. I was trying to reproduce your program in java, on latest version, on 2.6.17
, and confusion is following - where do you initially send message to the cluster? I see you declared message handler:
override fun onMessage(message: Message)
...
it's ok, but this handler must be activated upon receive of some message, question is - where do you send this message to cluster with non-null correlationId and header "x-is-reply"
?
I just tried the version 2.6.17
and the problem remains.
I'm sending the message to the node that sent the Ping!
request.
Can you rewrite example in java. It's hard to understand what' going on, for example this line:
val res: String = cluster.requestResponse(self, message).awaitSingle().data()
How it's going to work? Cluster
interface doesn't have method requestResponse
.
Actually that's true. The interface does not contain the method requestResponse
(in master branch).
But if you checkout the tag 2.6.17
you will find it, have a look here.
I think it's a discontinued feature, so I guess you can also close this issue.
Thanks a lot.
Hello!
I was just playing around and I think I encountered a bug.
The problem is when we make use of the
requestResponse
method in order to send messages to our self (acting like a node).The code correctly waits for the response, although it does not return the right response message.
For details just take a look at the following example (kotlin).
println(res)
does not print "Pong!"The above code can be found here.
Here is the output for the code above:
Am I missing something?
Thanks a lot!