Skip to content

[core] BucketedAppendCompactManager should use compactionFileSize instead of targetFileSize#7217

Merged
JingsongLi merged 5 commits intoapache:masterfrom
yuzelin:fix-compaction-size
Feb 6, 2026
Merged

[core] BucketedAppendCompactManager should use compactionFileSize instead of targetFileSize#7217
JingsongLi merged 5 commits intoapache:masterfrom
yuzelin:fix-compaction-size

Conversation

@yuzelin
Copy link
Contributor

@yuzelin yuzelin commented Feb 5, 2026

Purpose

See #1680

Tests

API and Format

Documentation

@yuzelin yuzelin force-pushed the fix-compaction-size branch from b4028e9 to 4331ecd Compare February 5, 2026 14:06
Copy link
Contributor

@leaves12138 leaves12138 left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

Please add test for this.

if (fileNum >= minFileNum) {
return Optional.of(candidates);
} else if (totalFileSize >= targetFileSize) {
} else if (totalFileSize >= compactionFileSize) {
Copy link
Contributor

Choose a reason for hiding this comment

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

See AppendCompactCoordinator, there is another magic...

yuzelin added 2 commits February 6, 2026 12:31
Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit b58585c into apache:master Feb 6, 2026
13 checks passed
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.

3 participants