KeDeng has posted comments on this change. ( http://gerrit.cloudera.org:8080/18054 )
Change subject: KUDU-3340 Disable compact on the specified table ...................................................................... Patch Set 10: (6 comments) http://gerrit.cloudera.org:8080/#/c/18054/4/src/kudu/common/common.proto File src/kudu/common/common.proto: http://gerrit.cloudera.org:8080/#/c/18054/4/src/kudu/common/common.proto@477 PS4, Line 477: If set true, the table will > If set true Done http://gerrit.cloudera.org:8080/#/c/18054/4/src/kudu/common/wire_protocol.cc File src/kudu/common/wire_protocol.cc: http://gerrit.cloudera.org:8080/#/c/18054/4/src/kudu/common/wire_protocol.cc@675 PS4, Line 675: return Status:: > Is this necessary? Done http://gerrit.cloudera.org:8080/#/c/18054/4/src/kudu/common/wire_protocol.cc@684 PS4, Line 684: > 'kTableDisableCompact' should be better. Done http://gerrit.cloudera.org:8080/#/c/18054/4/src/kudu/tablet/tablet.h File src/kudu/tablet/tablet.h: http://gerrit.cloudera.org:8080/#/c/18054/4/src/kudu/tablet/tablet.h@506 PS4, Line 506: Return > Return Done http://gerrit.cloudera.org:8080/#/c/18054/4/src/kudu/tablet/tablet_mm_ops.cc File src/kudu/tablet/tablet_mm_ops.cc: http://gerrit.cloudera.org:8080/#/c/18054/4/src/kudu/tablet/tablet_mm_ops.cc@117 PS4, Line 117: disable_rowset_compaction > What about using tablet_->metadata()->extra_config() directly? Even I use it directly, I still need to judge the specific content of extra_config. It is more convenient to use the encapsulated function. http://gerrit.cloudera.org:8080/#/c/18054/4/src/kudu/util/maintenance_manager.h File src/kudu/util/maintenance_manager.h: http://gerrit.cloudera.org:8080/#/c/18054/4/src/kudu/util/maintenance_manager.h@187 PS4, Line 187: last_worked_ > Why we need this new viarable? Seems 'last_modified_' is enough. The 'last_modified_' changed when UpdateStats() happens, even if do set_runnable() only. We need a new viarable used to distinguish whether only set_runnable() has run. -- To view, visit http://gerrit.cloudera.org:8080/18054 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ia8452bd9151f345fcad72bb9e0f07cd78432757e Gerrit-Change-Number: 18054 Gerrit-PatchSet: 10 Gerrit-Owner: KeDeng <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: KeDeng <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Yifan Zhang <[email protected]> Gerrit-Reviewer: Yingchun Lai <[email protected]> Gerrit-Comment-Date: Thu, 23 Dec 2021 02:37:17 +0000 Gerrit-HasComments: Yes
