[infinispan-issues] [JBoss JIRA] (ISPN-2471) BatchAsyncCacheStoreTest fails randomly
Adrian Nistor (JIRA)
jira-events at lists.jboss.org
Fri Nov 2 08:33:17 EDT 2012
[ https://issues.jboss.org/browse/ISPN-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731158#comment-12731158 ]
Adrian Nistor commented on ISPN-2471:
-------------------------------------
It seems the problem is in the coordinator thread, in AsyncStore.AsyncStoreCoordinator.run() there is a termination condition at line 669: "if (s.stopped) " that should actually be "if (s.stopped && s.modifications.isEmpty())" in order to allow all queued modifications to be processed before terminating run().
> BatchAsyncCacheStoreTest fails randomly
> ---------------------------------------
>
> Key: ISPN-2471
> URL: https://issues.jboss.org/browse/ISPN-2471
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Reporter: Adrian Nistor
> Assignee: Galder Zamarreño
> Attachments: BatchAsyncCacheStoreTest.log.gz
>
>
> This test fails randomly on master and a quick analysis of the logs indicates that the test is correct but there is a bug in AsyncStore. It seems that while shutting down a cache AsyncStore does not properly store all queued modifications. There is a high chance that the last updates are not stored because the worker threads are advised to shut down too early.
--
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