<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">After fixing that ISPN-2253:<div>* <a href="https://github.com/alesj/infinispan/commit/05229f426e829742902de0305488282b8283b8e5">https://github.com/alesj/infinispan/commit/05229f426e829742902de0305488282b8283b8e5</a></div><div>(Sanne is working on even cleaner solution)</div><div><br></div><div>It now also looks like our CapeDwarf clustering tests have been (almost) fixed.</div><div>It now appears as if one node cannot do proper querying:</div><div><br></div><div>Deployment dep1 goes to node1, same deployment dep2 goes to node2.</div><div><br></div><div>"Failed tests: queryOnA(org.jboss.test.capedwarf.cluster.DatastoreTestCase): Number of entities: 0"</div><div><br></div><div>Where as "queryOnB" doesn't fail.</div><div><br></div><div>@Sanne -- do we have any query tests covering this kind of scenario?</div><div><br></div><div>I'm using jgroups' auto-master selection.</div><div><br></div><div>Tomorrow I'll try fixed jgroups master/slave selection,</div><div>and the new dynamic auto-master selection.</div><div><br></div><div>Any ideas still welcome. ;-)</div><div><br></div><div>-Ales</div><div><br></div><div>---</div><div><br></div><div><div> @InSequence(30)</div><div> @Test</div><div> @OperateOnDeployment("dep1")</div><div> public void putStoresEntityOnDepA() throws Exception {</div><div> Entity entity = createTestEntity("KIND", 1);</div><div> getService().put(entity);</div><div> assertStoreContains(entity);</div><div> }</div><div><br></div><div> @InSequence(31)</div><div> @Test</div><div> @OperateOnDeployment("dep2")</div><div> public void putStoresEntityOnDepB() throws Exception {</div><div> Entity entity = createTestEntity("KIND", 2);</div><div> getService().put(entity);</div><div> assertStoreContains(entity);</div><div> }</div><div><br></div><div> @InSequence(40)</div><div> @Test</div><div> @OperateOnDeployment("dep1")</div><div> public void getEntityOnDepA() throws Exception {</div><div> waitForSync();</div><div><br></div><div> Key key = KeyFactory.createKey("KIND", 1);</div><div> Entity lookup = getService().get(key);</div><div><br></div><div> Assert.assertNotNull(lookup);</div><div><br></div><div> Entity entity = createTestEntity("KIND", 1);</div><div> Assert.assertEquals(entity, lookup);</div><div> }</div><div><br></div><div> @InSequence(50)</div><div> @Test</div><div> @OperateOnDeployment("dep2")</div><div> public void getEntityOnDepB() throws Exception {</div><div> waitForSync();</div><div><br></div><div> Entity entity = createTestEntity("KIND", 1);</div><div> assertStoreContains(entity);</div><div> }</div><div><br></div><div> @InSequence(52)</div><div> @Test</div><div> @OperateOnDeployment("dep1")</div><div> public void queryOnA() throws Exception {</div><div> waitForSync();</div><div><br></div><div> int count = getService().prepare(new Query("KIND")).countEntities(Builder.withDefaults());</div><div> Assert.assertTrue("Number of entities: " + count, count == 2);</div><div> }</div><div><br></div><div> @InSequence(53)</div><div> @Test</div><div> @OperateOnDeployment("dep2")</div><div> public void queryOnB() throws Exception {</div><div> waitForSync();</div><div><br></div><div> int count = getService().prepare(new Query("KIND")).countEntities(Builder.withDefaults());</div><div> Assert.assertTrue("Number of entities: " + count, count == 2);</div><div> }</div></div><div><br></div></body></html>