Uh oh!
There was an error while loading. Please reload this page.
[Enhancement](file-cache) Add fine-grained control for compaction file cache - #62119
Merged
Merged
Conversation
…e cache Support selective caching of index files only during compaction in cloud mode. Changes: - Add two mBool configs to control index-only caching for base and cumulative compaction: * enable_base_compaction_output_write_index_only (default: false) * enable_cumu_compaction_output_write_index_only (default: false) - Extend RowsetWriterContext with compaction_output_write_index_only field to mark whether only index files should be cached - Modify get_file_writer_options() to accept is_index_file parameter: * When compaction_output_write_index_only=true and is_index_file=false, set write_file_cache=false to skip caching data files * Index files continue to be cached normally - Update file writer creation call sites to pass is_index_file parameter: * Index file writers: pass true * Segment (data) file writers: pass false Benefits: - Reduces cache pressure by avoiding caching large data files during compaction - Preserves index file caching for query performance - Provides separate control for base and cumulative compaction strategies - Maintains backward compatibility with default settings
hello-stephen
commented
Apr 4, 2026
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
gavinchou
commented
Apr 4, 2026
ContributorAuthor
run buildall |
1 similar comment
gavinchou
commented
Apr 4, 2026
ContributorAuthor
run buildall |
1. Update parquet API: enable_force_write_int96_timestamps -> enable_deprecated_int96_timestamps 2. Fix test include paths: olap/ -> storage/ (file location changed in branch-4.1)
gavinchou
commented
Apr 4, 2026
ContributorAuthor
run buildall |
doris-robot
commented
Apr 4, 2026
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Apr 4, 2026
Contributor
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
yiguolei
commented
Apr 5, 2026
Contributor
skip buildall |
yiguolei
approved these changes
Apr 5, 2026
Uh oh!
There was an error while loading. Please reload this page.
29 tasks
yiguolei pushed a commit
that referenced
this pull request
Apr 11, 2026
#61832) (#62319) bp #61832 ### What problem does this PR solve? Problem Summary: pick #61832 again, since #62119 reverted the changes made to #61847. ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into --> ### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
kaka11chen pushed a commit
to kaka11chen/doris
that referenced
this pull request
Apr 11, 2026
apache#61832) (apache#62319) bp apache#61832 ### What problem does this PR solve? Problem Summary: pick apache#61832 again, since apache#62119 reverted the changes made to apache#61847. ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into --> ### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pick #60609 to branch-4.1
Support selective caching of index files only during compaction in cloud mode.
Changes:
Add two mBool configs to control index-only caching for base and cumulative compaction:
Extend RowsetWriterContext with compaction_output_write_index_only field to mark whether only index files should be cached
Modify get_file_writer_options() to accept is_index_file parameter:
Update file writer creation call sites to pass is_index_file parameter:
Benefits: