<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; "><div>Also to add ...</div><div><br></div><div>With some more testing, it showed that it is *slave* node's queries that failed.</div><div><br></div><div>I setup a static master node selection: via jgroupsMaster / jgroupsSlave.</div><div>When I changed the node type, different test failed.</div><div><br></div><div>e.g. if node A was slave, <span style="color: rgb(20, 20, 20); font-family: 'Lucida Grande'; line-height: 14px; ">queryOnA, indexGenAndQueryInsertOnA, testContentOnA</span><span style="color: rgb(20, 20, 20); font-family: 'Lucida Grande'; line-height: 14px; "> failed.</span></div><div><span style="color: rgb(20, 20, 20); font-family: 'Lucida Grande'; line-height: 14px; ">if node B was slave, simply change A --> B in test names above</span></div><div><span style="color: rgb(20, 20, 20); font-family: 'Lucida Grande'; line-height: 14px; "><br></span></div><div><span style="color: rgb(20, 20, 20); font-family: 'Lucida Grande'; line-height: 14px; ">This is the full test:</span></div><div><span style="color: rgb(20, 20, 20); font-family: 'Lucida Grande'; line-height: 14px; ">* </span><a href="https://raw.github.com/capedwarf/capedwarf-blue/a3b33ffad60e69a4c67f6b0e4ebe299ffa37d350/cluster-tests/src/test/java/org/jboss/test/capedwarf/cluster/DatastoreTestCase.java">https://raw.github.com/capedwarf/capedwarf-blue/a3b33ffad60e69a4c67f6b0e4ebe299ffa37d350/cluster-tests/src/test/java/org/jboss/test/capedwarf/cluster/DatastoreTestCase.java</a></div><div><br></div><div>As Sanne mentioned, that locking issue on Lucene cache's looks suspicious ...</div><div><br></div><div>-Ales</div><br><div><div>On Sep 3, 2012, at 11:20 AM, Sanne Grinovero <<a href="mailto:sanne@infinispan.org">sanne@infinispan.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Team, I hope someone more familiar with state transfer and cache<br>starting logic can help Ales as I don't think this is a Query or<br>Hibernate Search related problem.<br>Even more as his test was working not so long ago, and there where no<br>Search releases nor mayor changes in Infinispan Query.<br><br>This problem and the locking errors he reported in a different post<br>are very likely related: if the background thread in Hibernate<br>Search's backend fails to update the index because of the locking<br>issue, it doesn't surprise me that the other nodes are unable to see<br>an updated index (as write operations failed).<br><br>Cheers,<br>Sanne<br><br>On 3 September 2012 01:00, Ales Justin <<a href="mailto:ales.justin@gmail.com">ales.justin@gmail.com</a>> wrote:<br><blockquote type="cite">After fixing that ISPN-2253:<br>*<br><a href="https://github.com/alesj/infinispan/commit/05229f426e829742902de0305488282b8283b8e5">https://github.com/alesj/infinispan/commit/05229f426e829742902de0305488282b8283b8e5</a><br>(Sanne is working on even cleaner solution)<br><br>It now also looks like our CapeDwarf clustering tests have been (almost)<br>fixed.<br>It now appears as if one node cannot do proper querying:<br><br>Deployment dep1 goes to node1, same deployment dep2 goes to node2.<br><br>"Failed tests:<br>queryOnA(org.jboss.test.capedwarf.cluster.DatastoreTestCase): Number of<br>entities: 0"<br><br>Where as "queryOnB" doesn't fail.<br><br>@Sanne -- do we have any query tests covering this kind of scenario?<br><br>I'm using jgroups' auto-master selection.<br><br>Tomorrow I'll try fixed jgroups master/slave selection,<br>and the new dynamic auto-master selection.<br><br>Any ideas still welcome. ;-)<br><br>-Ales<br><br>---<br><br> @InSequence(30)<br> @Test<br> @OperateOnDeployment("dep1")<br> public void putStoresEntityOnDepA() throws Exception {<br> Entity entity = createTestEntity("KIND", 1);<br> getService().put(entity);<br> assertStoreContains(entity);<br> }<br><br> @InSequence(31)<br> @Test<br> @OperateOnDeployment("dep2")<br> public void putStoresEntityOnDepB() throws Exception {<br> Entity entity = createTestEntity("KIND", 2);<br> getService().put(entity);<br> assertStoreContains(entity);<br> }<br><br> @InSequence(40)<br> @Test<br> @OperateOnDeployment("dep1")<br> public void getEntityOnDepA() throws Exception {<br> waitForSync();<br><br> Key key = KeyFactory.createKey("KIND", 1);<br> Entity lookup = getService().get(key);<br><br> Assert.assertNotNull(lookup);<br><br> Entity entity = createTestEntity("KIND", 1);<br> Assert.assertEquals(entity, lookup);<br> }<br><br> @InSequence(50)<br> @Test<br> @OperateOnDeployment("dep2")<br> public void getEntityOnDepB() throws Exception {<br> waitForSync();<br><br> Entity entity = createTestEntity("KIND", 1);<br> assertStoreContains(entity);<br> }<br><br> @InSequence(52)<br> @Test<br> @OperateOnDeployment("dep1")<br> public void queryOnA() throws Exception {<br> waitForSync();<br><br> int count = getService().prepare(new<br>Query("KIND")).countEntities(Builder.withDefaults());<br> Assert.assertTrue("Number of entities: " + count, count == 2);<br> }<br><br> @InSequence(53)<br> @Test<br> @OperateOnDeployment("dep2")<br> public void queryOnB() throws Exception {<br> waitForSync();<br><br> int count = getService().prepare(new<br>Query("KIND")).countEntities(Builder.withDefaults());<br> Assert.assertTrue("Number of entities: " + count, count == 2);<br> }<br><br></blockquote></blockquote></div><br></body></html>