Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/18503 )
Change subject: [KUDU-3367][compaction] Fix delta file with full of delete op can not be schedule to compact ...................................................................... Patch Set 11: (1 comment) http://gerrit.cloudera.org:8080/#/c/18503/11/src/kudu/tablet/delta_tracker.cc File src/kudu/tablet/delta_tracker.cc: http://gerrit.cloudera.org:8080/#/c/18503/11/src/kudu/tablet/delta_tracker.cc@973 PS11, Line 973: const auto kOutdatedInterval = MonoDelta::FromSeconds( : FLAGS_all_delete_op_delta_file_outdated_for_compact_s); : bool is_outdated = elapsed > kOutdatedInterval; : if (all_delete_op_delta_store_cnt > FLAGS_all_delete_op_delta_file_cnt_for_compact : && is_outdated) { > nit: these code can be simplyfied. I meant use: if (all_delete_op_delta_store_cnt > FLAGS_all_delete_op_delta_file_cnt_for_compact && MonoTime::Now() - last_update_time_ > kOutdatedInterval) { ... } -- To view, visit http://gerrit.cloudera.org:8080/18503 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I8b26737dffecc17688b42188da959b2ba16351ed Gerrit-Change-Number: 18503 Gerrit-PatchSet: 11 Gerrit-Owner: KeDeng <[email protected]> Gerrit-Reviewer: KeDeng <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Tidy Bot (241) Gerrit-Reviewer: Yingchun Lai <[email protected]> Gerrit-Comment-Date: Wed, 09 Nov 2022 10:55:40 +0000 Gerrit-HasComments: Yes
