Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/15273 )
Change subject: [clock] safer handling of metrics-related endpoints ...................................................................... Patch Set 1: (5 comments) http://gerrit.cloudera.org:8080/#/c/15273/1/src/kudu/clock/hybrid_clock-test.cc File src/kudu/clock/hybrid_clock-test.cc: http://gerrit.cloudera.org:8080/#/c/15273/1/src/kudu/clock/hybrid_clock-test.cc@401 PS1, Line 401: ASSERT_FALSE(ntp_servers.empty()); Maybe ASSERT_EQ(1, ntp_servers.size()) instead? http://gerrit.cloudera.org:8080/#/c/15273/1/src/kudu/clock/hybrid_clock-test.cc@427 PS1, Line 427: presense presence http://gerrit.cloudera.org:8080/#/c/15273/1/src/kudu/clock/hybrid_clock.h File src/kudu/clock/hybrid_clock.h: http://gerrit.cloudera.org:8080/#/c/15273/1/src/kudu/clock/hybrid_clock.h@218 PS1, Line 218: that requires 'lock_' to be held already This doesn't appear to be true in the code. http://gerrit.cloudera.org:8080/#/c/15273/1/src/kudu/clock/hybrid_clock.cc File src/kudu/clock/hybrid_clock.cc: http://gerrit.cloudera.org:8080/#/c/15273/1/src/kudu/clock/hybrid_clock.cc@585 PS1, Line 585: object the hybrid clock http://gerrit.cloudera.org:8080/#/c/15273/1/src/kudu/clock/hybrid_clock.cc@587 PS1, Line 587: // when the object is not ready for that yet. Maybe be more explicit about what happens? Some sort of crash or inconsistent state? -- To view, visit http://gerrit.cloudera.org:8080/15273 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ic172635a7c7b019e5f4394c6107345820d408a68 Gerrit-Change-Number: 15273 Gerrit-PatchSet: 1 Gerrit-Owner: Alexey Serbin <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Volodymyr Verovkin <[email protected]> Gerrit-Comment-Date: Sat, 22 Feb 2020 22:50:04 +0000 Gerrit-HasComments: Yes
