Wenzhe Zhou has posted comments on this change. ( https://gerrit.cloudera.org/25153 )
Change subject: IMPALA-15575: Choose the active statestored from the current stub state ...................................................................... Patch Set 11: (3 comments) https://gerrit.cloudera.org/#/c/25153/11/be/src/statestore/statestore-subscriber.cc File be/src/statestore/statestore-subscriber.cc: https://gerrit.cloudera.org/#/c/25153/11/be/src/statestore/statestore-subscriber.cc@397 PS11, Line 397: if (HaRoleChecks()) ReconcileRoles("startup"); Call ReconcileRoles() if HaRoleChecks() && statestore_is_active && statestore2_is_active https://gerrit.cloudera.org/#/c/25153/11/be/src/statestore/statestore-subscriber.cc@494 PS11, Line 494: if (HaRoleChecks()) { Could you call HaRoleChecks() once, like if HaRoleChecks() { if standby_statestore_ != standby_statestore { ... } else { ... } } https://gerrit.cloudera.org/#/c/25153/11/be/src/statestore/statestore-subscriber.cc@868 PS11, Line 868: && active_statestored_version_ > response.active_statestored_version) { Also check response.active_statestored_version > 0 -- To view, visit https://gerrit.cloudera.org/25153 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I4f0c999a0eb4c8049b97223aba902dd55da708f0 Gerrit-Change-Number: 25153 Gerrit-PatchSet: 11 Gerrit-Owner: Petr Fedchenkov <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Petr Fedchenkov <[email protected]> Gerrit-Reviewer: Wenzhe Zhou <[email protected]> Gerrit-Reviewer: Yida Wu <[email protected]> Gerrit-Comment-Date: Fri, 20 Nov 2026 05:05:26 +0000 Gerrit-HasComments: Yes
