Dan Berindei created ISPN-2096:
----------------------------------
Summary: Duplicate join requests break destabilizes the cluster
Key: ISPN-2096
URL:
https://issues.jboss.org/browse/ISPN-2096
Project: Infinispan
Issue Type: Bug
Components: State transfer
Affects Versions: 5.1.5.FINAL
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 5.2.0.ALPHA1
When the coordinator receives a {{CacheViewControlCommand(REQUEST_JOIN)}} command from a
node that's already a member of the cache, it should just ignore it. Currently it
tries to install a new cache view with a duplicate member, and the new cache view
installation fails with this error:
{noformat}
[13:37:08,442] [WARN] (CacheViewControlCommand.java:141) - ISPN000071: Caught exception
when handling command CacheViewControlCommand{cache=Demo, type=PREPARE_VIEW,
sender=ppl-poz-nb0074/testy, newViewId=2, newMembers=[PPL-POZ-NB0074-33316,
PPL-POZ-NB0074-33316], oldViewId=1, oldMembers=[PPL-POZ-NB0074-33316]}
java.lang.IllegalStateException: Cannot prepare new view CacheView{viewId=2,
members=[PPL-POZ-NB0074-33316, PPL-POZ-NB0074-33316]} on cache Demo, we are currently
preparing view CacheView{viewId=2, members=[PPL-POZ-NB0074-33316, PPL-POZ-NB0074-33316]}
at org.infinispan.cacheviews.CacheViewInfo.prepareView(CacheViewInfo.java:102)
at
org.infinispan.cacheviews.CacheViewsManagerImpl.handlePrepareView(CacheViewsManagerImpl.java:481)
at
org.infinispan.commands.control.CacheViewControlCommand.perform(CacheViewControlCommand.java:126)
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira