You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/01/22 19:11:00 UTC

[jira] [Commented] (GEODE-7663) Delta updates can be lost in client cache proxy due to asynchronous nature of HARegionQueue

    [ https://issues.apache.org/jira/browse/GEODE-7663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17021402#comment-17021402 ] 

ASF subversion and git services commented on GEODE-7663:
--------------------------------------------------------

Commit 0f60172ddcb427af471a062a560631e9110b6069 in geode's branch refs/heads/feature/GEODE-7663 from Eric Shu
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=0f60172 ]

GEODE-7663: Fix delta update inconsistency in client cache.

 * When performing delta update on client, there is a possibility that
   some delta update is not yet applied on client cache.
 * If apply delta update, some queued delta update would be lost -- as
   entry versioning will discard these delta updates when received later.
 * Now it will check if there is a versioning mismatch, if it happened,
   the full value from server will be applied instead of just the delta.


> Delta updates can be lost in client cache proxy due to asynchronous nature of HARegionQueue
> -------------------------------------------------------------------------------------------
>
>                 Key: GEODE-7663
>                 URL: https://issues.apache.org/jira/browse/GEODE-7663
>             Project: Geode
>          Issue Type: Bug
>          Components: client queues
>            Reporter: Eric Shu
>            Priority: Major
>              Labels: GeodeCommons
>
> This was found when trying to add test coverage for Tomcat Server (GEODE-7109).
> Assume client1 (cache proxy) creates session (from tomcat server1) and updates attributes a few times. These delta updates will be send to Geode servers. For each update, server will generate a new version and will queue these delta updates to send to other client caches.
> Assume that there is a fail over case and the session fail over to tomcat server2 (with geode client 2 cache proxy cache). The newer update on the session on client 2 will be sent to servers. Once the update is successful on the server, it will be applied to client 2 local cache (with a newest version for the key). Now this cache operation will block the earlier updates sent through HARegionQueue from server to client 2. This will lead to attributes (delta updates) are lost on client 2 local cache -- causing the data inconsistency.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)