Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Avoid compacting recently added rowset #3271

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

gaodayue
Copy link
Contributor

@gaodayue gaodayue commented Apr 7, 2020

This CL fixes #3270 by skipping recently added version when performing cumulative compaction. A new config named "cumulative_compaction_skip_window_seconds" is added to adjust the time window.

@gaodayue gaodayue added kind/fix Categorizes issue or PR as related to a bug. area/storage Issues or PRs related to storage engine labels Apr 7, 2020
be/src/olap/rowset/rowset.cpp Outdated Show resolved Hide resolved
@gaodayue gaodayue closed this Apr 7, 2020
@gaodayue gaodayue reopened this Apr 7, 2020
@imay
Copy link
Contributor

imay commented Apr 8, 2020

Hi, @gaodayue
After #3264 is merged, backend's configure can be changed without restart. Better to make cumulative_compaction_skip_window_seconds modifiable.

@gaodayue
Copy link
Contributor Author

gaodayue commented Apr 8, 2020

@imay that's great, let me rebase

Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@imay
Copy link
Contributor

imay commented Apr 8, 2020

I have run this UT manually, and it is successful.
image
So, I will merge this PR.

@imay imay merged commit 3557b12 into apache:master Apr 8, 2020
acelyc111 pushed a commit to acelyc111/incubator-doris that referenced this pull request Jan 20, 2021
This CL fixes apache#3270 by skipping recently added version when performing cumulative compaction. A new config named "cumulative_compaction_skip_window_seconds" is added to adjust the time window.
imay pushed a commit to StarRocks/starrocks that referenced this pull request Sep 21, 2022
…conds (#11490)

cumulative_compaction_skip_window_seconds introduced by apache/doris#3271. At that time, it can not acquire rowset version after compaction, but now we can acquire from _stale_rs_version_map.
so that this config is useless now.
mergify bot pushed a commit to StarRocks/starrocks that referenced this pull request Oct 24, 2022
…conds (#11490)

cumulative_compaction_skip_window_seconds introduced by apache/doris#3271. At that time, it can not acquire rowset version after compaction, but now we can acquire from _stale_rs_version_map.
so that this config is useless now.

(cherry picked from commit 22af105)

# Conflicts:
#	be/src/storage/base_and_cumulative_compaction_policy.cpp
mergify bot pushed a commit to StarRocks/starrocks that referenced this pull request Oct 24, 2022
…conds (#11490)

cumulative_compaction_skip_window_seconds introduced by apache/doris#3271. At that time, it can not acquire rowset version after compaction, but now we can acquire from _stale_rs_version_map.
so that this config is useless now.

(cherry picked from commit 22af105)

# Conflicts:
#	be/src/storage/base_and_cumulative_compaction_policy.cpp
mergify bot pushed a commit to StarRocks/starrocks that referenced this pull request Oct 24, 2022
…conds (#11490)

cumulative_compaction_skip_window_seconds introduced by apache/doris#3271. At that time, it can not acquire rowset version after compaction, but now we can acquire from _stale_rs_version_map.
so that this config is useless now.

(cherry picked from commit 22af105)

# Conflicts:
#	be/src/storage/base_and_cumulative_compaction_policy.cpp
#	be/src/storage/cumulative_compaction.cpp
#	be/test/storage/cumulative_compaction_test.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/storage Issues or PRs related to storage engine kind/fix Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Query failed by "failed to initialize storage reader, res=-230"
2 participants