Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/13750 )
Change subject: KUDU-2876 Audit the semantics and the usage of Tabet::GetComponents ...................................................................... Patch Set 1: (2 comments) http://gerrit.cloudera.org:8080/#/c/13750/1//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/13750/1//COMMIT_MSG@7 PS1, Line 7: Audit the semantics and the usage I'm curious: did you trace the usages of the updated GetComponents() method to make sure the semantics of the callsites don't assume nullable output parameter as a result? http://gerrit.cloudera.org:8080/#/c/13750/1/src/kudu/tablet/tablet.h File src/kudu/tablet/tablet.h: http://gerrit.cloudera.org:8080/#/c/13750/1/src/kudu/tablet/tablet.h@630 PS1, Line 630: CHECK_NOTNULL nit: it seems this will emit some warnings about non-used return value. Maybe, use just CHECK(components_.get()) or CHECK_NE(nullptr, components_.get())? -- To view, visit http://gerrit.cloudera.org:8080/13750 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ib2eb6a268429741ad3609647dc1a73edec495ff2 Gerrit-Change-Number: 13750 Gerrit-PatchSet: 1 Gerrit-Owner: Yao Xu <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Comment-Date: Fri, 28 Jun 2019 18:46:13 +0000 Gerrit-HasComments: Yes
