[
http://jira.amdatu.org/jira/browse/AMDATU-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10170#comment-10170
]
Ivo Ladage - van Doorn commented on AMDATU-137:
-----------------------------------------------
Hhmm, the problem appears to be in Cassandra itself.
When I invoke a setValue immediately followed by a getValue, the result in the
getValue is still the old value and not the one set by setValue:
Adding 'TestEditor' to 'TestGuestUsers'
getValue for rowkey 'group_TestGuestUsers', SC 'Members', C 'basic':
["user_TestAdministrator"]
Writing '["user_TestAdministrator","user_TestEditor"]' to rowkey
'group_TestGuestUsers'
setValue for rowkey 'group_TestGuestUsers', SC 'Role', CF: 'basic':
["user_TestAdministrator","user_TestEditor"]
getValue for rowkey 'group_TestGuestUsers', SC 'Members', C 'basic':
["user_TestAdministrator"]
Result is '["user_TestAdministrator"]' for rowkey 'group_TestGuestUsers'
so setValue invokes cassandraServer.insert with value
["user_TestAdministrator","user_TestEditor"] but the cassandraServer.get method
still returns the old value sometimes. It seems that writing this value happens
asynchronously, despite the fact that ConsistencyLevel "ALL" is used.
Consistency level ALL should, according to the API documentation, ensure that
all nodes in the cluster are updated before the cs.insert call is returned.
Further investigation is needed
> Running the integration tests fails at random
> ---------------------------------------------
>
> Key: AMDATU-137
> URL: http://jira.amdatu.org/jira/browse/AMDATU-137
> Project: Amdatu
> Issue Type: Bug
> Reporter: Ivo Ladage - van Doorn
> Assignee: Ivo Ladage - van Doorn
> Priority: Blocker
> Fix For: 0.0.6
>
>
> After updating to the latest trunk revision and performing a mvn clean
> install, the integration test keeps failing with errors that vary.
> The test that fails is org.amdatu.test.integration.tests.UserAdminStoreTest,
> but the exact error varies:
> junit.framework.AssertionFailedError: Group 'TestGuestUsers' has 1 basic
> members. Expected: 3. Members found: TestAdministrator
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.assertTrue(Assert.java:20)
> at
> org.amdatu.test.integration.tests.UserAdminStoreTest.assertBasicMemberCount(UserAdminStoreTest.java:175)
> at
> org.amdatu.test.integration.tests.UserAdminStoreTest.run(UserAdminStoreTest.java:141)
> or
> junit.framework.AssertionFailedError: Group 'TestGuestUsers' has 2 basic
> members. Expected: 3. Members found: TestAdministrator TestEditor
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.assertTrue(Assert.java:20)
> at
> org.amdatu.test.integration.tests.UserAdminStoreTest.assertBasicMemberCount(UserAdminStoreTest.java:176)
> at
> org.amdatu.test.integration.tests.UserAdminStoreTest.run(UserAdminStoreTest.java:142)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira