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

Narrow the files checked by compaction commit #5153

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

cshannon
Copy link
Contributor

@cshannon cshannon commented Dec 8, 2024

Previously the conditional mutation to commit a compaction would require all files in the tablet be the same as read earlier and on a busy tablet this could fail and retry often. The check has now been narrowed to only verify that the files involved with the compaction still exist. A new method was added to Ample called requireFiles(Set files) which creates a condition for each file column to verify each one exists.

This closes #5117

Previously the conditional mutation to commit a compaction would require
all files in the tablet be the same as read earlier and on a busy tablet
this could fail and retry often. The check has now been narrowed to only
verify that the files involved with the compaction still exist. A new
method was added to Ample called requireFiles(Set<StoredTabletFile> files)
which creates a condition for each file column to verify each one
exists.

This closes apache#5117
@cshannon cshannon added this to the 4.0.0 milestone Dec 8, 2024
@cshannon cshannon requested a review from keith-turner December 8, 2024 16:40
@cshannon cshannon self-assigned this Dec 8, 2024
Copy link
Contributor

@ddanielr ddanielr left a comment

Choose a reason for hiding this comment

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

LGTM

@ddanielr ddanielr merged commit 88b108e into apache:main Dec 9, 2024
8 checks passed
keith-turner added a commit to keith-turner/accumulo that referenced this pull request Dec 9, 2024
Using the new method added in apache#5153 the set of files checked in the
conditional mutation for compacaction reserervation was reduced from all
tablet files to only the files in the compaction job.  Noticed the
conditinal mutation was not checking the user compaction requested field
while making this change and added it.
keith-turner added a commit that referenced this pull request Dec 11, 2024
)

Using the new method added in #5153 the set of files checked in the
conditional mutation for compacaction reserervation was reduced from all
tablet files to only the files in the compaction job.  Noticed the
conditinal mutation was not checking the user compaction requested field
while making this change and added it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Narrow the set of files checked by compaction commit conditional mutation
2 participants