[infinispan-issues] [JBoss JIRA] (ISPN-5564) AsyncCacheWriter stop() and clear() should not wait for space in the modifications queue

Dan Berindei (JIRA) issues at jboss.org
Wed Jun 24 03:28:02 EDT 2015


    [ https://issues.jboss.org/browse/ISPN-5564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13083085#comment-13083085 ] 

Dan Berindei commented on ISPN-5564:
------------------------------------

[~kblees] The fix is now integrated, but I'm wondering if this really matters for {{stop()}}. The cache is shutting down, so it's not issuing any more modifications, and {{stop()}} must wait for the processors to empty the queue and process all the modifications anyway.

> AsyncCacheWriter stop() and clear() should not wait for space in the modifications queue
> ----------------------------------------------------------------------------------------
>
>                 Key: ISPN-5564
>                 URL: https://issues.jboss.org/browse/ISPN-5564
>             Project: Infinispan
>          Issue Type: Enhancement
>            Reporter: Karsten Blees
>             Fix For: 8.0.0.Beta1, 7.2.4.Final
>
>
> AsyncCacheWriter.clear() invalidates all enqueued changes rather than adding more changes to the queue. Thus, clear should not wait if the queue is full.
> AsyncCacheWriter.stop() should also take effect immediately (i.e. set the stopped flag *without* waiting if the queue is full).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the infinispan-issues mailing list