[jgroups-users] Coordinator killed during start-up
Questions/problems related to using JGroups <[email protected]> Mon, 9 Apr 2018 11:52:24 +0000
| Newsgroups | gmane.comp.java.javagroups.general |
|---|---|
| Message-ID | <mailman.55265.1523274754.919.javagroups-users@lists.sourceforge.net> |
Hi guys,
Sorry for hammering but what do you guys think of this issue I stumbled upon ?
I have been investigating a problem we are experiencing with JGroups within our application, the application uses JDBC_PING
for discovery.
There are two nodes which are starting-up and the first node is killed after having written its record in the DB
but *before* having set itself as the cluster's coordinator in the DB. When the second node starts up it hangs in
the while loop at line 63 of ClientGmsImpl, joinInternal()
https://github.com/belaban/JGroups/blob/master/src/org/jgroups/protocols/pbcast/ClientGmsImpl.java
// We didn't get any coord responses; all responses were clients. If I'm the first of the sorted clients
// I'll become coordinator. The others will wait and then retry the discovery and join process
if(coords == null) { // e.g. because we have all clients only
if(firstOfAllClients(mbr, responses))
return;
continue;
}
In my scenario the sorting algorithm in firstOfAllClients()'s client's set contains the first node at the first
position therefore we will always continue waiting for the first node to set itself as the coordinator, this will
never happen as the first node isn't running anymore.
Thanks,
Pietro
Pietro Paolini
Consultant
Alfa
________________________________
e: [email protected] | w: alfasystems.com<https://www.alfasystems.com>
t: +44 (0) 20 7920-2643 | Moor Place, 1 Fore Street Avenue, London, EC2Y 9DT, GB
________________________________
The contents of this communication are not intended to be binding or constitute any form of offer or acceptance or give rise to any legal obligations on behalf of the sender or Alfa. The views or opinions expressed represent those of the author and not necessarily those of Alfa. This email and any attachments are strictly confidential and are intended solely for use by the individual or entity to whom it is addressed. If you are not the addressee (or responsible for delivery of the message to the addressee) you may not copy, forward, disclose or use any part of the message or its attachments. At present the integrity of email across the internet cannot be guaranteed and messages sent via this medium are potentially at risk. All liability is excluded to the extent permitted by law for any c
laims arising as a result of the use of this medium to transmit information by or to Alfa or its affiliates.
Alfa Financial Software Ltd
Reg. in England No: 0248 2325
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot