[infinispan-issues] [JBoss JIRA] (ISPN-8008) Add Fault-tolerance to write-behind stores
Ryan Emerson (JIRA)
issues at jboss.org
Tue Jul 4 06:22:00 EDT 2017
[ https://issues.jboss.org/browse/ISPN-8008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430799#comment-13430799 ]
Ryan Emerson commented on ISPN-8008:
------------------------------------
How we approach 2 depends on what failure conditions we tolerate for the store. If we only tolerate connection issues/write failures, then it should only be necessary to keep track of the keys modified during the outage and then flush the latest version of said keys on reconnect. However, if we assume that a store's content can be lost during the outage, then we will have to flush the entire cache.
> Add Fault-tolerance to write-behind stores
> ------------------------------------------
>
> Key: ISPN-8008
> URL: https://issues.jboss.org/browse/ISPN-8008
> Project: Infinispan
> Issue Type: Enhancement
> Components: Loaders and Stores
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
>
> Currently when a store is configured to be write-behind, three attempts are made to write the queued modifications to the store. If all three attempts fail, then this error is simply logged and the modifications are never written to the store.
> We should allow users to configure a write-behind store so that: In the event that a write-behind fails, further operations on the cache are not allowed and the modifications which failed to write to the store are queued indefinitely. Once the underlying store becomes available, the queued modifications should be written and then the cache should become available.
> To determine whether a store has become available again, the AsyncCacheWriter will have to poll the store's availability. Currently the CacheWriter interface does not allow such behaviour, therefore there are two options:
> * Attempt a write and catch an exception if the store is not currently available
> * Add a method to return the current status of a store to the CacheWriter interface
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list