-
1. Re: One or more nodes have left the cluster while replicating command TxCompletionNotificationCommand
pruivo Jan 23, 2014 10:42 AM (in response to tomas11)Hi tomas11,
you can use the @DataRehashed. it is triggered before and after the state transfer.
Cheers,
Pedro
-
2. Re: One or more nodes have left the cluster while replicating command TxCompletionNotificationCommand
tomas11 Jan 27, 2014 4:17 AM (in response to pruivo)Hi Pedro
Thanks for suggestion. I've tried to use @DataRehashed annotation but it was not invoked during one of cluster member leave from cluster.
Do you have an idea why @DataRehashed is not working?
Thanks
-
3. Re: Re: One or more nodes have left the cluster while replicating command TxCompletionNotificationCommand
pruivo Jan 27, 2014 4:53 AM (in response to tomas11)Hi tomas11,
Are you registering the notification in the cache object? E.g:
cache.addListener(new MyDataRehashListener());
Cheers,
Pedro
-
4. Re: One or more nodes have left the cluster while replicating command TxCompletionNotificationCommand
tomas11 Feb 18, 2014 4:13 AM (in response to pruivo)Hi Pedro
That's true but this one not works for example in case that we have 2 nodes and numOwners=2.
When one of this two nodes leaves the cluster @DataRehashed won't happen and I am not notified about change. In that case @ViewChanged is fine but I get in troubles as mentioned above.
Tomas
-
5. Re: One or more nodes have left the cluster while replicating command TxCompletionNotificationCommand
pruivo Feb 18, 2014 6:01 AM (in response to tomas11)Hi Tomas,
you are right. the @DataRehashed is not invoked when the consistent hash is balanced (i.e. no data needs to be transferred between nodes).
can you try with @TopologyChanged? the method will be invoked with TopologyChangedEvent<K,V> and you have access to the old and new consistent hash.
Note: the event can be triggered multiple times and the consistent hash can contain exactly the same members. this happens when only the routing table is changed.
Let me know if works.
Cheers,
Pedro
-
6. Re: One or more nodes have left the cluster while replicating command TxCompletionNotificationCommand
tomas11 Jun 20, 2014 11:57 AM (in response to pruivo)Hi Pedro
Sorry for late answer. But issue is still there. I am still getting exception
org.infinispan.remoting.transport.jgroups.SuspectException: One or more nodes have left the cluster while replicating command TxCompletionNotificationCommand
when I am trying to put something into cache in @TopologyChanged listener.
I am still missing an option how can I put something into cache while replication is not finished (e.g. when some node leave cluster).
Any idea will be appreciated.
Thanks