[infinispan-issues] [JBoss JIRA] (ISPN-1637) AsyncStore.enqueue() throws 'CacheException: Unable to enqueue asynchronous task' Instead of blocking when the queue is full

Sanne Grinovero (Updated) (JIRA) jira-events at lists.jboss.org
Sat Jan 7 13:06:09 EST 2012


     [ https://issues.jboss.org/browse/ISPN-1637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanne Grinovero updated ISPN-1637:
----------------------------------

        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done

    
> AsyncStore.enqueue() throws 'CacheException: Unable to enqueue asynchronous task' Instead of blocking when the queue is full
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-1637
>                 URL: https://issues.jboss.org/browse/ISPN-1637
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Loaders and Stores
>    Affects Versions: 5.1.0.CR1
>            Reporter: Andrew Pushkin
>            Assignee: Manik Surtani
>              Labels: blockingQueue, modificationQueueSize
>             Fix For: 5.1.0.CR3
>
>   Original Estimate: 2 hours
>  Remaining Estimate: 2 hours
>
> Documentation http://docs.jboss.org/infinispan/5.1/apidocs/config.html#ce_loader_async :
> "modificationQueueSize	int	1024	Sets the size of the modification queue for the async store. If updates are made at a rate that is faster than the underlying cache store can process this queue, then the async store behaves like a synchronous store for that period, blocking until the queue can accept more elements. (Javadoc)"
> However the async store doesn't "behaves like synchronous [...] blocking until the queue can accept more elements" because AsyncStore.enqueue() calls 
> changesDeque.add(mod); 
> But I guess it should call put() to wait queue to accept more elements.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list