{"action":"created","issue":{"url":"https://api.github.com/repos/ehcache/ehcache3/issues/1666","repository_url":"https://api.github.com/repos/ehcache/ehcache3","labels_url":"https://api.github.com/repos/ehcache/ehcache3/issues/1666/labels{/name}","comments_url":"https://api.github.com/repos/ehcache/ehcache3/issues/1666/comments","events_url":"https://api.github.com/repos/ehcache/ehcache3/issues/1666/events","html_url":"https://github.com/ehcache/ehcache3/issues/1666","id":192627492,"number":1666,"title":"New active crashes after faillover when clients reconnect","user":{"login":"esebasti","id":16104847,"avatar_url":"https://avatars.githubusercontent.com/u/16104847?v=3","gravatar_id":"","url":"https://api.github.com/users/esebasti","html_url":"https://github.com/esebasti","followers_url":"https://api.github.com/users/esebasti/followers","following_url":"https://api.github.com/users/esebasti/following{/other_user}","gists_url":"https://api.github.com/users/esebasti/gists{/gist_id}","starred_url":"https://api.github.com/users/esebasti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esebasti/subscriptions","organizations_url":"https://api.github.com/users/esebasti/orgs","repos_url":"https://api.github.com/users/esebasti/repos","events_url":"https://api.github.com/users/esebasti/events{/privacy}","received_events_url":"https://api.github.com/users/esebasti/received_events","type":"User","site_admin":false},"labels":[{"id":82913211,"url":"https://api.github.com/repos/ehcache/ehcache3/labels/bug","name":"bug","color":"fc2929","default":true},{"id":232974550,"url":"https://api.github.com/repos/ehcache/ehcache3/labels/clustering","name":"clustering","color":"eb6420","default":false},{"id":119748874,"url":"https://api.github.com/repos/ehcache/ehcache3/labels/in%20progress","name":"in progress","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"ljacomet","id":135308,"avatar_url":"https://avatars.githubusercontent.com/u/135308?v=3","gravatar_id":"","url":"https://api.github.com/users/ljacomet","html_url":"https://github.com/ljacomet","followers_url":"https://api.github.com/users/ljacomet/followers","following_url":"https://api.github.com/users/ljacomet/following{/other_user}","gists_url":"https://api.github.com/users/ljacomet/gists{/gist_id}","starred_url":"https://api.github.com/users/ljacomet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljacomet/subscriptions","organizations_url":"https://api.github.com/users/ljacomet/orgs","repos_url":"https://api.github.com/users/ljacomet/repos","events_url":"https://api.github.com/users/ljacomet/events{/privacy}","received_events_url":"https://api.github.com/users/ljacomet/received_events","type":"User","site_admin":false},"assignees":[{"login":"ljacomet","id":135308,"avatar_url":"https://avatars.githubusercontent.com/u/135308?v=3","gravatar_id":"","url":"https://api.github.com/users/ljacomet","html_url":"https://github.com/ljacomet","followers_url":"https://api.github.com/users/ljacomet/followers","following_url":"https://api.github.com/users/ljacomet/following{/other_user}","gists_url":"https://api.github.com/users/ljacomet/gists{/gist_id}","starred_url":"https://api.github.com/users/ljacomet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljacomet/subscriptions","organizations_url":"https://api.github.com/users/ljacomet/orgs","repos_url":"https://api.github.com/users/ljacomet/repos","events_url":"https://api.github.com/users/ljacomet/events{/privacy}","received_events_url":"https://api.github.com/users/ljacomet/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ehcache/ehcache3/milestones/28","html_url":"https://github.com/ehcache/ehcache3/milestones/3.2.0","labels_url":"https://api.github.com/repos/ehcache/ehcache3/milestones/28/labels","id":1894383,"number":28,"title":"3.2.0","description":"Milestone for changes slated for inclusion in a future 3.2.0 line as they require changes to the SPIs.","creator":{"login":"chrisdennis","id":954331,"avatar_url":"https://avatars.githubusercontent.com/u/954331?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdennis","html_url":"https://github.com/chrisdennis","followers_url":"https://api.github.com/users/chrisdennis/followers","following_url":"https://api.github.com/users/chrisdennis/following{/other_user}","gists_url":"https://api.github.com/users/chrisdennis/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdennis/subscriptions","organizations_url":"https://api.github.com/users/chrisdennis/orgs","repos_url":"https://api.github.com/users/chrisdennis/repos","events_url":"https://api.github.com/users/chrisdennis/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdennis/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":22,"state":"open","created_at":"2016-07-20T15:23:01Z","updated_at":"2016-12-01T04:11:26Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-11-30T17:23:14Z","updated_at":"2016-12-02T16:03:42Z","closed_at":null,"body":"Here is the assertion error that crashes active,\r\n\r\ncom.tc.util.TCAssertionError: entity not found\r\nat com.tc.util.Assert.failure(Assert.java:55)\r\nat com.tc.util.Assert.failure(Assert.java:55)\r\nat com.tc.objectserver.handshakemanager.ServerClientHandshakeManager.notifyClientConnect(ServerClientHandshakeManager.java:138)\r\nat com.tc.objectserver.handshakemanager.ServerClientHandshakeManager.notifyClientConnect(ServerClientHandshakeManager.java:138)\r\nat com.tc.objectserver.handler.ClientHandshakeHandler.handleEvent(ClientHandshakeHandler.java:68)\r\nat com.tc.objectserver.handler.ClientHandshakeHandler.handleEvent(ClientHandshakeHandler.java:68)\r\nat com.tc.objectserver.handler.ClientHandshakeHandler.handleEvent(ClientHandshakeHandler.java:38)\r\nat com.tc.objectserver.handler.ClientHandshakeHandler.handleEvent(ClientHandshakeHandler.java:38)\r\nat com.tc.async.impl.StageQueueImpl$HandledContext.runWithHandler(StageQueueImpl.java:502)\r\nat com.tc.async.impl.StageQueueImpl$HandledContext.runWithHandler(StageQueueImpl.java:502)\r\nat com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:197)\r\nat com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:197)\r\n\r\nHere is the test case to reproduce this issue.\r\n\r\n    CLUSTER.getClusterControl().waitForActive();\r\n    //Create two cache manager clients connecting to same entity on server.\r\n    PersistentCacheManager[] cacheManagers = new PersistentCacheManager[2];\r\n    for (int i = 0; i < cacheManagers.length; ++i) {\r\n      CacheManagerBuilder<PersistentCacheManager> builder = CacheManagerBuilder.newCacheManagerBuilder()\r\n        .with(ClusteringServiceConfigurationBuilder.cluster(CLUSTER.getConnectionURI()\r\n          .resolve(\"/crud-cm-replication\"))\r\n          .autoCreate()\r\n          .defaultServerResource(\"primary-server-resource\")\r\n          .resourcePool(\"resource-pool-a\", 8, MemoryUnit.MB));\r\n      cacheManagers[i] = builder.build(true);\r\n\r\n    }\r\n\r\n    cacheManagers[0].close();\r\n    try {\r\n      //Destroy cache manager when other client \"1\" still connected to it.\r\n      cacheManagers[0].destroy();\r\n      Assert.fail(\"Expected error not thrown\");\r\n    } catch (StateTransitionException e) {\r\n      //expected\r\n    }\r\n\r\n    //failover\r\n    CLUSTER.getClusterControl().terminateActive();\r\n    CLUSTER.getClusterControl().waitForActive();\r\n    Assert.assertNotNull(cacheManagers[1].createCache(\"cache1\", CacheConfigurationBuilder.newCacheConfigurationBuilder(Integer.class, Integer.class,\r\n      ResourcePoolsBuilder.newResourcePoolsBuilder()\r\n        .with(ClusteredResourcePoolBuilder.clusteredDedicated(\"primary-server-resource\", 8, MemoryUnit.MB)))\r\n      .add(ClusteredStoreConfigurationBuilder.withConsistency(Consistency.EVENTUAL))));"},"comment":{"url":"https://api.github.com/repos/ehcache/ehcache3/issues/comments/264489709","html_url":"https://github.com/ehcache/ehcache3/issues/1666#issuecomment-264489709","issue_url":"https://api.github.com/repos/ehcache/ehcache3/issues/1666","id":264489709,"user":{"login":"myronkscott","id":16088297,"avatar_url":"https://avatars.githubusercontent.com/u/16088297?v=3","gravatar_id":"","url":"https://api.github.com/users/myronkscott","html_url":"https://github.com/myronkscott","followers_url":"https://api.github.com/users/myronkscott/followers","following_url":"https://api.github.com/users/myronkscott/following{/other_user}","gists_url":"https://api.github.com/users/myronkscott/gists{/gist_id}","starred_url":"https://api.github.com/users/myronkscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronkscott/subscriptions","organizations_url":"https://api.github.com/users/myronkscott/orgs","repos_url":"https://api.github.com/users/myronkscott/repos","events_url":"https://api.github.com/users/myronkscott/events{/privacy}","received_events_url":"https://api.github.com/users/myronkscott/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T16:03:42Z","updated_at":"2016-12-02T16:03:42Z","body":"Fix for Terracotta-OSS/terracotta-core#379 has been merged and will be included in the next release."}}
{"actor":{"display_login":"myronkscott"}}