Skip to content

[core] Fix flaky duplicate file discard test#8106

Open
QuakeWang wants to merge 1 commit into
apache:masterfrom
QuakeWang:fix-discard-duplicate-test
Open

[core] Fix flaky duplicate file discard test#8106
QuakeWang wants to merge 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

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.

1 participant