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

ASF GitHub Bot commented on GEODE-8444:
---------------------------------------

gesterzhou commented on a change in pull request #5467:
URL: https://github.com/apache/geode/pull/5467#discussion_r475777699



##########
File path: 
geode-core/src/main/java/org/apache/geode/internal/cache/versions/RegionVersionVector.java
##########
@@ -994,13 +994,18 @@ public boolean 
isNewerThanOrCanFillExceptionsFor(RegionVersionVector<T> other) {
     return false;
   }
 
-  private boolean isGCVersionDominatedByOtherHolder(Long gcVersion,
+  private boolean isGCVersionDominatedByOtherHolder(Long gcVersion, Long 
requesterGCVersion,
       RegionVersionHolder<T> otherHolder) {
     if (gcVersion == null || gcVersion.longValue() == 0) {
       return true;
     } else {
       RegionVersionHolder<T> holder = new 
RegionVersionHolder<T>(gcVersion.longValue());
-      return !holder.isNewerThanOrCanFillExceptionsFor(otherHolder);
+      if (otherHolder == null) {
+        return false;
+      } else {
+        return otherHolder.dominates(holder)
+            && (gcVersion == requesterGCVersion || otherHolder.getVersion() > 
gcVersion);

Review comment:
       that's correct




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


> When requester's RVV equals provider's rvvGC, should do fullGII 
> ----------------------------------------------------------------
>
>                 Key: GEODE-8444
>                 URL: https://issues.apache.org/jira/browse/GEODE-8444
>             Project: Geode
>          Issue Type: Improvement
>            Reporter: Xiaojian Zhou
>            Assignee: Xiaojian Zhou
>            Priority: Major
>              Labels: GeodeOperationAPI, pull-request-available
>
> In current design, when requester's RVV equals provider's rvvGC, we treated 
> as dominated. 
> But if the last operation at provider is a destroy and the tombstone is GCed 
> when requester is offline, the provider lost the information about this key 
> when GII. So we should do fullGII instead of deltaGII in this case. 



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

Reply via email to