[infinispan-issues] [JBoss JIRA] (ISPN-8908) Remote cache fails to get entries when state transfer is turned off

Pedro Ruivo (JIRA) issues at jboss.org
Mon Mar 26 06:17:00 EDT 2018


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

Pedro Ruivo commented on ISPN-8908:
-----------------------------------

This isn't a bug but a feature request. This behaviour was never supported. 
Besides the data lost that we can't prevent, if the state transfer is turn off, it may create inconsistencies in the data, when used with concurrent remove operation. 
As an example, assuming a backup owner of a key, this events can happen:


* It receives a {{remove_operation}} from the primary owner and applies it. The key is removed.
* It performs a local {{get()}}. The value isn't found so it asks to all the other owners. If the other owners haven't applied the {{remove_operation}} yet, the old value is returned
* And it stores the old value again.

In the end, this backup owner keeps the value while the remaining owners remove it.
To solve this, we need to support tombstones. We currently don't have that.

IMO, enabling the state transfer and disabling {{awaitInitialTransfer}} is the best option.

[~dan.berindei] or [~rvansa], do you have another suggestion/opinion?

> Remote cache fails to get entries when state transfer is turned off
> -------------------------------------------------------------------
>
>                 Key: ISPN-8908
>                 URL: https://issues.jboss.org/browse/ISPN-8908
>             Project: Infinispan
>          Issue Type: Bug
>          Components: State Transfer
>    Affects Versions: 9.2.0.Final
>            Reporter: Vojtech Juranek
>            Assignee: Pedro Ruivo
>
> When state transfer is turned off, remote cache fails to obtain cache entries from HR server (in client-server mode) which connects to the cluster. Only about half of the entries can be seen by HR client on newly connected server, both in replicated cache and distributed cache.
> It's not specific to CS mode, same problem is also in embedded mode.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list