Re: [jgroups-users] problem with custom address

Questions/problems related to using JGroups <[email protected]> Fri, 1 Jun 2018 11:56:53 -0400
Newsgroups gmane.comp.java.javagroups.general
Message-ID <mailman.24081.1527868976.988.javagroups-users@lists.sourceforge.net>
On Fri, Jun 1, 2018 at 11:47 AM, Bobby Bissett <
[email protected]> wrote:

> Ok, I've pulled that. Thanks. Still not working, but I have more info.
> When I start each node, viewAccepted is called at startup, but never is
> again. I added a loop that outputs jc.getView().getMembers() every few
> seconds. On each node, I see that the members are *replaced* with whoever
> joined last. The viewAccepted method is never called, and each node ends up
> with a view containing 1 address, the address of the last node to start.
>

If it helps, here's one such replacement when a 2nd node starts with
jgroups logged turned up:


6/1/18 11:55:07 AM com.enterprisedb.efm.nodes.EfmNode lambda$doStartup$0
WARNING: [hostone-16587(Fri Jun 01 11:54:34 EDT 2018)]

6/1/18 11:55:10 AM org.jgroups.blocks.cs.TcpServer$Acceptor handleAccept
FINER: 172.16.144.177:7800: accepted connection from 172.16.144.185:7800

6/1/18 11:55:10 AM org.jgroups.protocols.TP passMessageUp FINER:
hostone-16587(Fri Jun 01 11:54:34 EDT 2018): received [dst:
172.16.144.177:7800, src: hostone-16587(Fri Jun 01 11:55:09 EDT 2018) (2
headers), size=79 bytes, flags=OOB|DONT_BUNDLE|INTERNAL], headers are
TCPPING: [GET_MBRS_REQ cluster=efm initial_discovery=true], TP:
[cluster_name=efm]

6/1/18 11:55:10 AM org.jgroups.protocols.Discovery sendDiscoveryResponse
FINER: localhost-29203(Fri Jun 01 11:54:34 EDT 2018): received GET_MBRS_REQ
from localhost-29203(Fri Jun 01 11:55:09 EDT 2018), sending response
localhost-29203(Fri Jun 01 11:54:34 EDT 2018), name=localhost-29203, addr=
172.16.144.185:7800, coord

6/1/18 11:55:10 AM org.jgroups.protocols.TP down FINER: localhost-29203(Fri
Jun 01 11:54:34 EDT 2018): sending msg to localhost-29203(Fri Jun 01
11:55:09 EDT 2018), src=localhost-29203(Fri Jun 01 11:54:34 EDT 2018),
headers are TCPPING: [GET_MBRS_RSP cluster=null initial_discovery=false],
TP: [cluster_name=efm]

6/1/18 11:55:10 AM org.jgroups.protocols.TP loopback FINER:
localhost-29203(Fri Jun 01 11:54:34 EDT 2018): looping back message [dst:
localhost-29203(Fri Jun 01 11:55:09 EDT 2018), src: localhost-29203(Fri Jun
01 11:54:34 EDT 2018) (2 headers), size=79 bytes,
flags=OOB|DONT_BUNDLE|INTERNAL], headers are TCPPING: [GET_MBRS_RSP
cluster=null initial_discovery=false], TP: [cluster_name=efm]

6/1/18 11:55:10 AM org.jgroups.protocols.TP passMessageUp FINER:
localhost-29203(Fri Jun 01 11:54:34 EDT 2018): received [dst:
localhost-29203(Fri Jun 01 11:55:09 EDT 2018), src: localhost-29203(Fri Jun
01 11:54:34 EDT 2018) (2 headers), size=79 bytes,
flags=OOB|DONT_BUNDLE|INTERNAL], headers are TCPPING: [GET_MBRS_RSP
cluster=null initial_discovery=false], TP: [cluster_name=efm]

6/1/18 11:55:10 AM org.jgroups.protocols.Discovery up FINER:
localhost-29203(Fri Jun 01 11:54:34 EDT 2018): received GET_MBRS_RSP from
localhost-29203(Fri Jun 01 11:54:34 EDT 2018): localhost-29203(Fri Jun 01
11:54:34 EDT 2018), name=localhost-29203, addr=172.16.144.185:7800, coord

6/1/18 11:55:12 AM com.enterprisedb.efm.nodes.EfmNode lambda$doStartup$0
WARNING: [localhost-29203(Fri Jun 01 11:54:34 EDT 2018)]

6/1/18 11:55:13 AM org.jgroups.blocks.cs.BaseServer
removeConnectionIfPresent FINER: 172.16.144.177:7800: removed connection to
172.16.144.185:7800

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
javagroups-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/javagroups-users