yihua opened a new pull request, #17722: URL: https://github.com/apache/hudi/pull/17722
### Describe the issue this Pull Request addresses Fixes flaky test `TestHoodieDeltaStreamerWithMultiWriter#testLatestCheckpointCarryOverWithMultipleWriters` which was intermittently failing due to a hardcoded checkpoint assertion. ### Summary and Changelog The test asserted a hardcoded checkpoint value `"00008"`, but the actual checkpoint varies depending on how many commits are produced during the prep phase. The prep phase uses `assertAtleastNCompactionCommits(3, ...)` which is a non-deterministic "at least N" condition - the actual number of commits (and thus the checkpoint) can be 3, 4, 5, or more depending on timing and thread scheduling in continuous mode. - Capture the checkpoint value after `backfillJob.sync()` to determine the current state - Calculate the expected final checkpoint dynamically by incrementing the captured checkpoint - Replace the hardcoded `"00008"` assertion with the dynamically calculated value ### Impact None. Test reliability improvement only. ### Risk Level none ### Documentation Update none ### Contributor's checklist - [x] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [x] Enough context is provided in the sections above - [x] Adequate tests were added if applicable -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
