Skip to content

Commit

Permalink
[Refactor] Disable base compaction overrun (#32553)
Browse files Browse the repository at this point in the history
Signed-off-by: meegoo <[email protected]>
  • Loading branch information
meegoo authored Oct 13, 2023
1 parent ec046a3 commit 57aa782
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions be/src/storage/compaction_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ bool CompactionManager::_check_precondition(const CompactionCandidate& candidate
return false;
}
uint16_t num = running_base_tasks_num_for_dir(data_dir);
if (config::base_compaction_num_threads_per_disk > 0 &&
num >= config::base_compaction_num_threads_per_disk * 2) {
if (config::base_compaction_num_threads_per_disk > 0 && num >= config::base_compaction_num_threads_per_disk) {
VLOG(2) << "skip tablet:" << tablet->tablet_id()
<< " for limit of base compaction task per disk. disk path:" << data_dir->path()
<< ", running num:" << num;
Expand Down

0 comments on commit 57aa782

Please sign in to comment.