-
Notifications
You must be signed in to change notification settings - Fork 185
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
Prevent consolidation with fragment list in dense arrays if it could result in data loss. #5251
Merged
KiterLuc
merged 13 commits into
dev
from
dstara/sc-50064/disallow-dense-fragment-list-consolidation
Sep 9, 2024
Merged
Prevent consolidation with fragment list in dense arrays if it could result in data loss. #5251
KiterLuc
merged 13 commits into
dev
from
dstara/sc-50064/disallow-dense-fragment-list-consolidation
Sep 9, 2024
Conversation
This file contains 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
DimitrisStaratzis
force-pushed
the
dstara/sc-50064/disallow-dense-fragment-list-consolidation
branch
2 times, most recently
from
August 22, 2024 10:54
5e182e4
to
8d49155
Compare
KiterLuc
reviewed
Aug 23, 2024
KiterLuc
reviewed
Aug 28, 2024
DimitrisStaratzis
changed the title
Prevent consolidation with fragment lists in Dense Arrays if it could result in data loss
Prevent consolidation with fragment list in dense arrays if it could result in data loss
Aug 29, 2024
DimitrisStaratzis
force-pushed
the
dstara/sc-50064/disallow-dense-fragment-list-consolidation
branch
from
August 29, 2024 12:21
efce830
to
e0a4714
Compare
KiterLuc
reviewed
Sep 6, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easy fixes and this is good to go.
// cheaper. We compare the current fragment's start timestamp against the | ||
// upper bound we calculated previously. | ||
auto timestamp_range{frag_info.timestamp_range()}; | ||
bool timestamp_before = !(timestamp_range.first > max_timestamp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
bool timestamp_before = !(timestamp_range.first > max_timestamp); | |
bool timestamps_overlap = !(timestamp_range.first > max_timestamp); |
KiterLuc
approved these changes
Sep 9, 2024
KiterLuc
changed the title
Prevent consolidation with fragment list in dense arrays if it could result in data loss
Prevent consolidation with fragment list in dense arrays if it could result in data loss.
Sep 9, 2024
KiterLuc
deleted the
dstara/sc-50064/disallow-dense-fragment-list-consolidation
branch
September 9, 2024 14:12
Sign up for free
to 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.
When using fragment list consolidation with dense arrays, there is a possibility that consolidating some fragments would lead to data loss (see https://docs.tiledb.com/main/background/internal-mechanics/consolidation#algorithm for more details). This PR fixes this issue.
TYPE: IMPROVEMENT
DESC: Prevent consolidation with fragment list in dense arrays if it could result in data loss.