Bug 924806 - View installation loop when restarting cache on multiple nodes
Summary: View installation loop when restarting cache on multiple nodes
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Clustering
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: EAP 6.3.0
Assignee: Paul Ferraro
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-22 14:34 UTC by Shay Matasaro
Modified: 2018-12-02 18:40 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-12-12 14:54:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-2892 0 Major Resolved View installation loop when restarting cache on multiple nodes 2015-10-14 11:59:00 UTC

Description Shay Matasaro 2013-03-22 14:34:24 UTC
Restarting a cache on multiple nodes at the same time can cause the following error:

ERROR [org.infinispan.cacheviews.CacheViewsManagerImpl] (CacheViewInstaller-19,node1/web) ISPN000172: Failed to prepare view CacheView
{viewId=18, members=[node2/web]} for cache default-host/test, rolling back to view CacheView{viewId=17, members=[node1/web, node2/web]}: java.util.concurrent.ExecutionException: org.infinispan.CacheException: java.lang.IllegalStateException: default-host/test: Received cache view prepare request after the local node has already shut down

After the initial error, the following error began repeating every second for a few minutes until BaseStateTransferManagerImpl.waitForJoinToComplete() timed out and the cache failed to start:

ERROR [org.infinispan.cacheviews.CacheViewsManagerImpl] (CacheViewInstaller-19,node1/web) ISPN000172: Failed to prepare view CacheView{viewId=21, members=[node2/web]} for cache default-host/test, rolling back to view CacheView{viewId=20, members=[]}: java.util.concurrent.ExecutionException: org.infinispan.CacheException: java.lang.IllegalStateException: Cannot prepare new view CacheView{viewId=21, members=[node2/web]} on cache default-host/test, we are currently preparing view CacheView{viewId=18, members=[node2/web]}

Comment 1 JBoss JIRA Server 2013-04-09 15:58:42 UTC
Dan Berindei <dberinde> made a comment on jira ISPN-2892

I think it's normal to get *one* instance of this error message: 

{noformat}
ERROR [org.infinispan.cacheviews.CacheViewsManagerImpl] (CacheViewInstaller-19,node1/web) ISPN000172: Failed to prepare view CacheView{viewId=21, members=[node2/web]} for cache default-host/test, rolling back to view CacheView{viewId=20, members=[]}: java.util.concurrent.ExecutionException: org.infinispan.CacheException: java.lang.IllegalStateException: Cannot prepare new view CacheView{viewId=21, members=[node2/web]} on cache default-host/test, we are currently preparing view CacheView{viewId=18, members=[node2/web]}
{noformat}

But after that, the coordinator should send a ROLLBACK_VIEW command, which should clear the "pendingView", and the next PREPARE_VIEW should succeed. Did you see any message with failed (or successful) ROLLBACK_VIEW commands in the log?

Comment 2 JBoss JIRA Server 2013-04-09 15:59:40 UTC
Dan Berindei <dberinde> made a comment on jira ISPN-2892

I think it's normal to get *one* instance of this error message, if the coordinator died while installing a cache view: 

{noformat}
ERROR [org.infinispan.cacheviews.CacheViewsManagerImpl] (CacheViewInstaller-19,node1/web) ISPN000172: Failed to prepare view CacheView{viewId=21, members=[node2/web]} for cache default-host/test, rolling back to view CacheView{viewId=20, members=[]}: java.util.concurrent.ExecutionException: org.infinispan.CacheException: java.lang.IllegalStateException: Cannot prepare new view CacheView{viewId=21, members=[node2/web]} on cache default-host/test, we are currently preparing view CacheView{viewId=18, members=[node2/web]}
{noformat}

But after that, the coordinator should send a ROLLBACK_VIEW command, which should clear the "pendingView", and the next PREPARE_VIEW should succeed. Did you see any message with failed (or successful) ROLLBACK_VIEW commands in the log?

Comment 5 JBoss JIRA Server 2014-01-24 19:22:52 UTC
Mircea Markus <mmarkus> updated the status of jira ISPN-2892 to Resolved

Comment 6 Scott Mumford 2014-04-23 02:22:00 UTC
Marked for exclusion from Release Notes documentation as not a bug


Note You need to log in before you can comment on or make changes to this bug.