Skip to content

[core] Fix flaky duplicate file discard test#8106

Merged
JingsongLi merged 1 commit into
apache:masterfrom
QuakeWang:fix-discard-duplicate-test
Jun 4, 2026
Merged

[core] Fix flaky duplicate file discard test#8106
JingsongLi merged 1 commit into
apache:masterfrom
QuakeWang:fix-discard-duplicate-test

Conversation

@QuakeWang
Copy link
Copy Markdown
Contributor

Purpose

testDiscardDuplicateFilesMultiThread used random commit message selection and an unbounded cached thread pool while stressing concurrent duplicate-file commits. Under CI contention, the test could exhaust the default commit retry limit and fail with an ExecutionException, making the result flaky and hard to diagnose.

This PR makes the test deterministic, gives the stress case a bounded retry configuration, shuts down the executor, and adds commit context to worker failures.

Tests

  • mvn -pl paimon-core -am -Pfast-build -DfailIfNoTests=false -Dtest=AppendOnlySimpleTableTest#testDiscardDuplicateFilesMultiThread test
  • mvn -pl paimon-core -am -DfailIfNoTests=false -Dtest=AppendOnlySimpleTableTest#testDiscardDuplicateFilesMultiThread test

Copy link
Copy Markdown
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.

LGTM, thanks.

@JingsongLi JingsongLi merged commit 1d56d2d into apache:master Jun 4, 2026
12 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.

2 participants