KeDeng has uploaded this change for review. ( http://gerrit.cloudera.org:8080/18503
Change subject: [compaction] Fix delta file with full of delete op can not be schedule to compact ...................................................................... [compaction] Fix delta file with full of delete op can not be schedule to compact If we get a REDO delta with full of delete op, wich means there is no update op in the file. The current compact algorithm will not schedule the file do compact. If such files exist, after accumulating for a period of time, it will greatly affect our scan speed. However, processing such files every time compact reduces compact's performance. So I added a flag FLAGS_ignore_delete_op_for_compact to solve this situation. When we found a similar situation, we can schedule the compact algorithm to deal with REDO deltas by set FLAGS_ignore_delete_op_for_compact to false. When we solve this problem, we need to restore the flag to true to ensure that the compact performance will not be affected. Change-Id: I8b26737dffecc17688b42188da959b2ba16351ed --- M src/kudu/common/row_changelist.h M src/kudu/tablet/delta_tracker.cc M src/kudu/tablet/delta_tracker.h M src/kudu/tablet/deltafile.cc M src/kudu/tablet/deltafile.h M src/kudu/tablet/diskrowset-test-base.h M src/kudu/tablet/diskrowset-test.cc M src/kudu/tablet/diskrowset.cc 8 files changed, 182 insertions(+), 11 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/03/18503/1 -- 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: newchange Gerrit-Change-Id: I8b26737dffecc17688b42188da959b2ba16351ed Gerrit-Change-Number: 18503 Gerrit-PatchSet: 1 Gerrit-Owner: KeDeng <[email protected]>
