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

Change subject: KUDU-2514 Part 1: Support extra config for table.
......................................................................


Patch Set 16:

(4 comments)

Almost there, just a few more comments.

http://gerrit.cloudera.org:8080/#/c/12468/16/src/kudu/common/wire_protocol.h
File src/kudu/common/wire_protocol.h:

http://gerrit.cloudera.org:8080/#/c/12468/16/src/kudu/common/wire_protocol.h@154
PS16, Line 154: Status ExtraConfigPBToPBMap(const TableExtraConfigPB& pb,
The implementation doesn't share the same semantics as ExtraConfigPBToMap: this 
method is "additive" (i.e. it doesn't blow away 'configs'; it just replaces 
specific keys in it) while the other method is not.

That's why I recommended doing the merging directly in 
CatalogManager::AlterTable rather than in one of these helpers. The helpers 
should have simple, clear, and consistent semantics. More complicated stuff 
should be handled by higher levels of the stack.


http://gerrit.cloudera.org:8080/#/c/12468/16/src/kudu/common/wire_protocol.cc
File src/kudu/common/wire_protocol.cc:

http://gerrit.cloudera.org:8080/#/c/12468/16/src/kudu/common/wire_protocol.cc@661
PS16, Line 661:   configs->swap(result);
Nit: Replace with:

  *configs = std::move(result);

It's more C++11.


http://gerrit.cloudera.org:8080/#/c/12468/16/src/kudu/common/wire_protocol.cc@679
PS16, Line 679: properties
Nit: "property" (since this is printing just one of them).


http://gerrit.cloudera.org:8080/#/c/12468/16/src/kudu/tablet/tablet_metadata-test.cc
File src/kudu/tablet/tablet_metadata-test.cc:

http://gerrit.cloudera.org:8080/#/c/12468/16/src/kudu/tablet/tablet_metadata-test.cc@96
PS16, Line 96:   AlterSchema(*harness_->tablet()->schema(), 
boost::make_optional(extra_config)); // same schema
Should wrap this in NO_FATALS() because it has ASSERTs in it. Otherwise 
failures are only checked at the end of the test (or the next NO_FATALS() call).



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I0514507dca95602a97e954d1db464b907e073aae
Gerrit-Change-Number: 12468
Gerrit-PatchSet: 16
Gerrit-Owner: Yao Xu <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Reviewer: Todd Lipcon <[email protected]>
Gerrit-Reviewer: Yao Xu <[email protected]>
Gerrit-Comment-Date: Tue, 04 Jun 2019 23:06:58 +0000
Gerrit-HasComments: Yes

Reply via email to