Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/16580 )
Change subject: KUDU-3149: don't block op registration on MM mutex ...................................................................... Patch Set 8: (1 comment) http://gerrit.cloudera.org:8080/#/c/16580/8/src/kudu/util/maintenance_manager.cc File src/kudu/util/maintenance_manager.cc: http://gerrit.cloudera.org:8080/#/c/16580/8/src/kudu/util/maintenance_manager.cc@283 PS8, Line 283: CHECK_GT(num_erased_ops, 0); > Right. In a vacuum, that scenario would lead to a crash. However, we currently uphold an invariant that a single thread calls UnregisterMaintenanceOps by ensuring only a single thread shuts down the tablet, which ensures we never call UnregisterOp more than once per op: https://github.com/apache/kudu/blob/master/src/kudu/tablet/tablet_replica.cc#L282 -- only one thread can proceed as STOPPING and unregister, close everything, etc. -- To view, visit http://gerrit.cloudera.org:8080/16580 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I4a1b810f5b7ff6a22acc9b10b79ddffa8085c990 Gerrit-Change-Number: 16580 Gerrit-PatchSet: 8 Gerrit-Owner: Andrew Wong <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Grant Henke <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Tidy Bot (241) Gerrit-Comment-Date: Mon, 19 Oct 2020 23:07:30 +0000 Gerrit-HasComments: Yes
