Replies: 3 comments 4 replies
-
Hello Bela, Firstly I wanted to thank you for the great product that you are developing. I am playing around with JGroups (4.2.10 version) and have run into one issue. In this situation first call (N1 to N2) never returns and fails with timeout error. Is this by design that you cannot make a sync call to the original caller? Thanks, |
Beta Was this translation helpful? Give feedback.
-
This sounds pretty much like a deadlock. Why don't you simply use a
synchronous RPC? I don't grok the need for making a call back to the
sender from the receiver...
If you absolutely have to, you could make that second call OOB, then it
would resolve the deadlock...
…On 11.02.21 21:20, Siarhei Dzemidavets wrote:
Hello Bela,
Firstly I wanted to thank you for the great product that you are developing.
I am playing around with JGroups (4.2.10 version) and have run into one
issue.
I have a cluster with 2 nodes N1 and N2. They are communicating with
each other via RPC sync calls.
The issue happens when there is a roundtrip call between 2 nodes. The
calls get blocked and timed out.
Example:
N1 calls N2 (N1 is keeping connection open and waiting for response from N2)
N2 excepts the call from N1 and makes synchronous call back to N1 (it is
expected that N1 responds back to N2 and N2 responds back to N1 to its
original call)
In this situation first call (N1 to N2) never returns and fails with
timeout error.
Is this by design that you cannot make a sync call to the original caller?
If I make N2 to N1 call on a separate thread then it works. But then N1
does not receive proper response.
Thanks,
Sergei
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#526 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADPZXMF5ZWD4QZ6JU6YAGTS6Q3Z7ANCNFSM4XCIPTLQ>.
--
Bela Ban | http://www.jgroups.org
|
Beta Was this translation helpful? Give feedback.
-
Glad to be of help! Note that if you processed the request on a separate thread, the response would be able to be delivered. This just as another option... |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions