Yida Wu 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:

(2 comments)

Thanks for the updates. Logic looks right, a few questions

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@498
PS11, Line 498:               
std::max(active_statestore_->GetActiveVersion(&stub_is_active),
              :                   
standby_statestore_->GetActiveVersion(&stub_is_active));
The active versions are UnixMicros() from two different hosts, and this max() 
(and ReconcileRoles()) now compare them. What happens if a statestored's clock 
steps back or the two clocks are skewed, could a valid active status be ignored 
here?


https://gerrit.cloudera.org/#/c/25153/11/be/src/statestore/statestore-subscriber.cc@649
PS11, Line 649:   active_statestore_ = best;
This switch doesn't set has_failover, so the post failover grace period doesn't 
apply, unlike the swap in UpdateStatestoredRole(). Is that intended?



--
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: Yida Wu <[email protected]>
Gerrit-Comment-Date: Thu, 19 Nov 2026 11:53:18 +0000
Gerrit-HasComments: Yes

Reply via email to