Yida Wu 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: Code-Review+1

(3 comments)

https://gerrit.cloudera.org/#/c/25152/5/be/src/statestore/statestore-subscriber.cc
File be/src/statestore/statestore-subscriber.cc:

https://gerrit.cloudera.org/#/c/25152/5/be/src/statestore/statestore-subscriber.cc@521
PS5, Line 521: VLOG(1)
It seems should be fine using LOG(INFO) like other logs around?


https://gerrit.cloudera.org/#/c/25152/5/be/src/statestore/statestore-subscriber.cc@763
PS5, Line 763:   if (status.ok() && response.__isset.statestore_id) {
Would it be better to check with HaRoleChecks() for this too?


https://gerrit.cloudera.org/#/c/25152/5/tests/custom_cluster/test_statestored_ha.py
File tests/custom_cluster/test_statestored_ha.py:

https://gerrit.cloudera.org/#/c/25152/5/tests/custom_cluster/test_statestored_ha.py@972
PS5, Line 972:
How about adding these two tests for abort cases with same address?
  @pytest.mark.execute_serially
  @CustomClusterTestSuite.with_args(
    statestored_args="--use_network_address_as_statestore_priority=true",
    start_args="--enable_statestored_ha 
--per_impalad_args=-state_store_2_port=24000",
    expect_startup_fail=True)
  def test_same_statestored_address_twice(self):
    """Both statestored addresses of an impalad are localhost:24000, the 
address of
    statestoreds[0]. The impalad aborts at startup."""
    self.assert_impalad_log_contains("FATAL",
        "Both configured statestored addresses are localhost:24000")

  @pytest.mark.execute_serially
  @CustomClusterTestSuite.with_args(
    statestored_args="--use_network_address_as_statestore_priority=true",
    impalad_args="--state_store_2_host=127.0.0.1",
    start_args="--enable_statestored_ha 
--per_impalad_args=-state_store_2_port=24000",
    expect_startup_fail=True)
  def test_same_statestored_through_alias(self):
    """The statestored addresses of an impalad are localhost:24000 and 
127.0.0.1:24000,
    two addresses of statestoreds[0]. The impalad aborts when it registers."""
    self.assert_impalad_log_contains("FATAL", "Registered with the same 
statestored")



--
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 23:48:18 +0000
Gerrit-HasComments: Yes

Reply via email to