You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by zh...@apache.org on 2022/06/02 06:54:04 UTC

[geode] branch feature/GEODE-10350 created (now 53b3a86408)

This is an automated email from the ASF dual-hosted git repository.

zhouxj pushed a change to branch feature/GEODE-10350
in repository https://gitbox.apache.org/repos/asf/geode.git


      at 53b3a86408 GEODE-10350: volunteerForPrimary should proceed when being elector or knowing elector

This branch includes the following new commits:

     new 53b3a86408 GEODE-10350: volunteerForPrimary should proceed when being elector or knowing elector

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[geode] 01/01: GEODE-10350: volunteerForPrimary should proceed when being elector or knowing elector

Posted by zh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zhouxj pushed a commit to branch feature/GEODE-10350
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 53b3a864082731612b8384e41f7de6cca9c9a2c1
Author: zhouxh <gz...@pivotal.io>
AuthorDate: Wed Jun 1 23:53:23 2022 -0700

    GEODE-10350: volunteerForPrimary should proceed when being elector or knowing elector
---
 .../src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java b/geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java
index e6dcd3fb8f..233cc2544a 100755
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java
@@ -990,7 +990,7 @@ public class BucketAdvisor extends CacheDistributionAdvisor {
    */
   public void volunteerForPrimary() {
     InternalDistributedMember elector = primaryElector;
-    if (elector != null && regionAdvisor.hasPartitionedRegion(elector)) {
+    if (elector != null && !regionAdvisor.hasPartitionedRegion(elector)) {
       // another server will determine the primary node
       return;
     }