Re: [jgroups-dev] Continuous heartbeat messages without View change
Development issues <[email protected]> Tue, 25 Jul 2017 09:07:13 +0200
| Newsgroups | gmane.comp.java.javagroups.devel |
|---|---|
| Message-ID | <mailman.5444.1500966445.2635.javagroups-development@lists.sourceforge.net> |
This looks ok to me, haven't tested it though.
Report back once you have a reproducible case, with instructions on how
to reproduce it, a sample program and config, and I'll take a look.
FD_ALL has worked forever, so I assume you may run into network issues
every now and then...
On 21/07/17 12:49, Development issues wrote:
> Custom address looks like:
>
> import java.util.function.Supplier;
>
> import org.jgroups.Address;
> import org.jgroups.conf.ClassConfigurator;
> import org.jgroups.stack.AddressGenerator;
> import org.jgroups.util.NameCache;
> import org.jgroups.util.UUID;
>
> public class CustomAddress extends UUID implements AddressGenerator {
>
> /**
> *
> */
>
> static {
> ClassConfigurator.add((short) 12545, CustomAddress.class);
> }
>
> public CustomAddress() {
> super();
> }
>
> public CustomAddress(long mostSigBits, long leastSigBits) {
> super(mostSigBits, leastSigBits);
> }
>
> protected CustomAddress(byte[] data) {
> super(data);
> }
>
> public static CustomAddress randomUUID(String name) {
> CustomAddress retval=new CustomAddress(generateRandomBytes());
> if(name != null)
> NameCache.add(retval, name);
> return retval;
> }
>
> @Override
> public Supplier<? extends UUID> create() {
> return CustomAddress::new;
> }
>
> @Override
> public Address generateAddress() {
> return CustomAddress.randomUUID("master");
> }
>
> }
>
> This issue is not reproducible always. My config and custom membership
> policy works fine and no problem with the view generation.
>
> Thanks in advance :-)
>
>
>
> --
> View this message in context: http://jgroups.1086181.n5.nabble.com/Continuous-heartbeat-messages-without-View-change-tp11352p11367.html
> Sent from the JGroups - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Javagroups-development mailing list
>
--
Bela Ban | http://www.jgroups.org
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Javagroups-development mailing list