Adar Dembo has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/14232 )

Change subject: [tserver] include ip:port in the tserver name
......................................................................


Patch Set 2:

(1 comment)

The TSAN failure is interesting. It's not related to this patch, but it is 
related to one of your previous patches, Lifu.

In ts_tablet_manager-itest.cc:

  // 6. Restart the masters.
  {
    for (int i = 0; i < kNumMasters; ++i) {
      int idx = 0;
      ASSERT_OK(cluster_->GetLeaderMasterIndex(&idx));
      master::MiniMaster* mini_master = 
CHECK_NOTNULL(cluster_->mini_master(idx));
      mini_master->Shutdown();
      SleepFor(MonoDelta::FromMilliseconds(kMaxElectionTime));
      ASSERT_OK(mini_master->Restart());
      // Sometimes the election fails until the node restarts.
      // And the restarted node is elected leader again.
      // So, it is necessary to wait for all tservers to report.
      SleepFor(MonoDelta::FromMilliseconds(FLAGS_heartbeat_interval_ms));
      NO_FATALS(CheckStats(kRowsCount));
    }
  }

I think there needs to be a call to mini_master->WaitForCatalogManagerInit() 
somewhere, perhaps after the Restart(), or after the waiting.

http://gerrit.cloudera.org:8080/#/c/14232/2/src/kudu/tserver/tablet_server.cc
File src/kudu/tserver/tablet_server.cc:

http://gerrit.cloudera.org:8080/#/c/14232/2/src/kudu/tserver/tablet_server.cc@69
PS2, Line 69:   if (kRunning != state_) {
            :     return "TabletServer (stopped)";
            :   }
            :   return strings::Substitute("TabletServer@$0", 
first_rpc_address().ToString());
> Maybe, this is a good opportunity to consolidate implementation of correspo
+1. No reason why masters shouldn't also report this; it's useful in 
multi-master deployments.



--
To view, visit http://gerrit.cloudera.org:8080/14232
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic6b0d8e29b6cac5a900923b881f0d7a74facbd6e
Gerrit-Change-Number: 14232
Gerrit-PatchSet: 2
Gerrit-Owner: helifu <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Mon, 16 Sep 2019 18:47:33 +0000
Gerrit-HasComments: Yes

Reply via email to