Skip to content

Fix ExternalCompaction_1_IT.testPartialCompaction failure#5054

Merged
dlmarion merged 1 commit into
apache:2.1from
dlmarion:5052-broken-ext-comp-it
Nov 14, 2024
Merged

Fix ExternalCompaction_1_IT.testPartialCompaction failure#5054
dlmarion merged 1 commit into
apache:2.1from
dlmarion:5052-broken-ext-comp-it

Conversation

@dlmarion
Copy link
Copy Markdown
Contributor

The test was timing out because it never started running compactions created by the test method. Instead, the compactor process was running compactions created by the previous test method because the previous test created a table with a lot of files, started a user compaction, then cancelled the user compaction. The recent changes in #5026 caused a bunch of system compactions to be generated for the table. The two test methods share the same compaction queue, so the compactor was busy running the system compactions.

To fix this issue I backported a property added in #3955 that makes the compactor cancel check method time configurable and I deleted the table in the test method that created a lot of files.

Closes #5052

The test was timing out because it never started running compactions
created by the test method. Instead, the compactor process was
running compactions created by the previous test method because
the previous test created a table with a lot of files, started a
user compaction, then cancelled the user compaction. The recent
changes in apache#5026 caused a bunch of system compactions to be
generated for the table. The two test methods share the same
compaction queue, so the compactor was busy running the system
compactions.

To fix this issue I backported a property added in apache#3955 that
makes the compactor cancel check method time configurable and
I deleted the table in the test method that created a lot of files.

Closes apache#5052
@dlmarion dlmarion added this to the 2.1.4 milestone Nov 12, 2024
@dlmarion dlmarion self-assigned this Nov 12, 2024
Copy link
Copy Markdown
Member

@DomGarguilo DomGarguilo left a comment

Choose a reason for hiding this comment

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

LGTM

@dlmarion dlmarion linked an issue Nov 13, 2024 that may be closed by this pull request
@dlmarion dlmarion merged commit 5715f06 into apache:2.1 Nov 14, 2024
@dlmarion dlmarion deleted the 5052-broken-ext-comp-it branch November 14, 2024 13:47
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.

Broken test: ExternalCompaction_1_IT.testPartialCompaction timing out

2 participants