Andrew Wong has uploaded this change for review. ( http://gerrit.cloudera.org:8080/8606
Change subject: tablet: add early returns to maintenance functions ...................................................................... tablet: add early returns to maintenance functions When a Tablet is stopped, further maintenance ops are not scheduled, further IO is prevented, etc. This patch optimizes this further to stop various functions that are called by maintenance threads to prevent their execution, returning an error instead. Previously, certain ops (e.g. flush DMS) would guarantee durability by checking for success. In such cases, it is sufficient to instead check that the tablet has been stopped. Currently this is an optimization for tablets that are shutting down to return early from these calls, but in the future could be useful in stopping all IO done by a tablet that is failing, e.g. due to disk failure. Change-Id: I84ad557851863f6fd9acff28ddcd1244e62cf516 --- M src/kudu/integration-tests/stop_tablet-itest.cc M src/kudu/tablet/tablet.cc M src/kudu/tablet/tablet_replica.cc M src/kudu/tablet/tablet_replica.h M src/kudu/tablet/tablet_replica_mm_ops.cc 5 files changed, 34 insertions(+), 6 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/06/8606/1 -- To view, visit http://gerrit.cloudera.org:8080/8606 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I84ad557851863f6fd9acff28ddcd1244e62cf516 Gerrit-Change-Number: 8606 Gerrit-PatchSet: 1 Gerrit-Owner: Andrew Wong <[email protected]>
