Skip to content

Commit

Permalink
[fix](MoW) fix MoW & segcompaction conflict on cache of temp segment (#…
Browse files Browse the repository at this point in the history
…37760)

MoW will update delete bitmap during load, and the page cache could be
modified by segcompaction. Disable page cache touchs when doing
segcompaction could solve this problem.

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->

Signed-off-by: freemandealer <freeman.zhang1992@gmail.com>
  • Loading branch information
freemandealer authored Jul 16, 2024
1 parent 2f0e574 commit ba2b371
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions be/src/olap/rowset/segcompaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Status SegcompactionWorker::_get_segcompaction_reader(
reader_params.tablet = tablet;
reader_params.return_columns = return_columns;
reader_params.is_key_column_group = is_key;
reader_params.use_page_cache = false;
return (*reader)->init(reader_params, nullptr);
}

Expand Down

0 comments on commit ba2b371

Please sign in to comment.