Fengling Wang has posted comments on this change. ( http://gerrit.cloudera.org:8080/11727 )
Change subject: [location_awareness] Add ts location to TSInfoPB ...................................................................... Patch Set 2: (2 comments) http://gerrit.cloudera.org:8080/#/c/11727/2/src/kudu/integration-tests/table_locations-itest.cc File src/kudu/integration-tests/table_locations-itest.cc: http://gerrit.cloudera.org:8080/#/c/11727/2/src/kudu/integration-tests/table_locations-itest.cc@315 PS2, Line 315: : { // Check that the master doesn't give back partial results while the table is being created. : GetTableLocationsRequestPB req; : GetTableLocationsResponsePB resp; : RpcController controller; : req.mutable_table()->set_table_name(table_name); : : for (int i = 1; ; i++) { : if (i > 10) { : FAIL() << "Create table timed out"; : } : : controller.Reset(); : ASSERT_OK(proxy_->GetTableLocations(req, &resp, &controller)); : SCOPED_TRACE(SecureDebugString(resp)); : : if (resp.has_error()) { : ASSERT_EQ(MasterErrorPB::TABLET_NOT_RUNNING, resp.error().code()); : SleepFor(MonoDelta::FromMilliseconds(i * i * 100)); : } else { : ASSERT_EQ(1, resp.tablet_locations().size()); : break; : } : } : } > Isn't this tested by TestGetTableLocations above already? Is this code dupl This is same as the one above. Seems like if I don't add it, some errors will pop out: Create Tablet RPC failed for tablet bfe478ffec174b75a51d66f0835230ee: Remote error: Service unavailable: service kudu.tserver.TabletServerAdminService not registered on TabletServer http://gerrit.cloudera.org:8080/#/c/11727/2/src/kudu/master/catalog_manager.cc File src/kudu/master/catalog_manager.cc: http://gerrit.cloudera.org:8080/#/c/11727/2/src/kudu/master/catalog_manager.cc@4436 PS2, Line 4436: if (ts_desc->location()) tsinfo_pb->set_location(*(ts_desc->location())); > Do we need the if statement? What does location() return otherwise? If it's It will be null if the location is not set. -- To view, visit http://gerrit.cloudera.org:8080/11727 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ic5865cb47698817097a7f62c968c5cfd80e07259 Gerrit-Change-Number: 11727 Gerrit-PatchSet: 2 Gerrit-Owner: Fengling Wang <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Fengling Wang <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Will Berkeley <[email protected]> Gerrit-Comment-Date: Mon, 22 Oct 2018 21:16:30 +0000 Gerrit-HasComments: Yes
