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

[HUDI-7374] Fix flaky test concurrent compaction test #12657

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

Davis-Zhang-Onehouse
Copy link
Contributor

@Davis-Zhang-Onehouse Davis-Zhang-Onehouse commented Jan 17, 2025

Change Logs

The culprit leads to validation issue is because instead of extracting the commit time from the data file and compare, we just treat the whole file name as a string and check if the string contains the commit instant time string. This causes issue if the commit instant time string is short (like "002") as the file name is generated with UUID and it can contain this string by chance.

The fix is we explicitly extract the commit time from the file name and compare, this eliminates any ambiguity of the validation we are doing.

Also we should write more informative error message, containing as many context on what we validated as possible. It saves tons of time reproducing the issue.

Impact

fixed flaky test

Risk level (write none, low medium or high below)

none

Documentation Update

none

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@github-actions github-actions bot added the size:S PR with lines of changes in (10, 100] label Jan 17, 2025
@hudi-bot
Copy link

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@wombatu-kun wombatu-kun merged commit a3f9bde into apache:master Jan 20, 2025
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S PR with lines of changes in (10, 100]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants