Petr Fedchenkov 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 12: All three applied, plus the comment: - ReconcileRoles() at startup now runs only when HaRoleChecks() and both registrations report active (the two flags are hoisted out of the else block so the condition reads at the call site). - HaRoleChecks() is called once into a local in UpdateStatestoredRole(). - The registration response guard now also ignores a non-positive version — legitimate HA elections always stamp > 0. The failover swap guard in UpdateStatestoredRole() had the same hole, so it got the same check. - The reasoning comment is above the swap in ReconcileRoles(). Validation: full test_statestored_ha.py and test_catalogd_ha.py pass. The follow-up Jira for carrying the active version in the HA heartbeat (discussed in the clock-skew thread above) is filed as IMPALA-15849: https://issues.apache.org/jira/browse/IMPALA-15849 -- 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: 12 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 19:24:41 +0000 Gerrit-HasComments: No
