[infinispan-issues] [JBoss JIRA] (ISPN-3515) Suspicios behaviour for ISPN Directory with Async. JDBC CacheStore

Anna Manukyan (JIRA) jira-events at lists.jboss.org
Tue Sep 17 08:59:03 EDT 2013


Anna Manukyan created ISPN-3515:
-----------------------------------

             Summary: Suspicios behaviour for ISPN Directory with Async. JDBC CacheStore
                 Key: ISPN-3515
                 URL: https://issues.jboss.org/browse/ISPN-3515
             Project: Infinispan
          Issue Type: Bug
          Components: Querying
            Reporter: Anna Manukyan
            Assignee: Sanne Grinovero


I've noticed some strange behaviour while test implementation which I was not able to explain. 

I have a infinispan configuration file which contains definition for REPL cache using indexing on Infinispan Directory and using customized caches for ISPN Directory with enabled asynchronous JDBC cachestore (please see attached the configuration). 

The test is extended from the one existing already in the testsuite but works with the newly defined configuration - org.infinispan.query.blackbox.ClusteredCacheTest. 

The issue is that, 2 tests are failing - testClear() and testSearchKeyTransformer() with assertion errors. 

And these failures appear in case if the indexLocalOnly is set to true, even though the ISPN Directory caches are implemented to be clustered in a REPL mode.

When I'm changing the indexLocalOnly to false, then everything is ok - all tests are passing.

The failure messages for each method are:

{code}
testClear():

java.lang.AssertionError: 
Expected :0
Actual   :3
  <Click to see difference>


	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
	at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364)
	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80)
	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:245)
	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:252)
	at org.infinispan.query.blackbox.ClusteredCacheTest.testClear(ClusteredCacheTest.java:266)


testSearchKeyTransformer():

java.lang.AssertionError: 
Expected :2
Actual   :1
  <Click to see difference>


	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
	at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364)
	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80)
	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:245)
	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:252)
	at org.infinispan.query.blackbox.ClusteredCacheTest.testSearchKeyTransformer(ClusteredCacheTest.java:362)

{code} 

You can find attached the test classes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list