Petr Fedchenkov has posted comments on this change. ( https://gerrit.cloudera.org/25152 )
Change subject: IMPALA-15596: Match a statestored ID exactly before the wildcard ...................................................................... Patch Set 5: Thanks Yida, you are right. With that flag combination both stubs register with statestored 0 and get the same statestore id, and both registration responses report the same statestored as active, which trips the DCHECK in Start() in a debug build (in a release build IsStubFor() then matches neither stub and the first registration starves in recovery loops). Patch set 5 rejects the misconfiguration: the subscriber aborts at construction when the two statestored addresses are identical, and a registration response that carries a statestore id already held by the other stub aborts the subscriber, which also covers addresses that differ but lead to the same statestored, like localhost and 127.0.0.1. I verified both aborts with your example and with aliased hostnames; the HA tests of test_statestored_ha.py still pass. The sleep in test_subscriber_started_while_first_statestored_down is replaced with the log wait you suggested. -- To view, visit https://gerrit.cloudera.org/25152 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ieeacdaccd4ab58c37337f8413cbd4e27637c743e Gerrit-Change-Number: 25152 Gerrit-PatchSet: 5 Gerrit-Owner: Petr Fedchenkov <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Petr Fedchenkov <[email protected]> Gerrit-Reviewer: Wenzhe Zhou <[email protected]> Gerrit-Reviewer: Yida Wu <[email protected]> Gerrit-Comment-Date: Tue, 03 Nov 2026 09:13:32 +0000 Gerrit-HasComments: No
