lokeshj1703 opened a new pull request, #19758:
URL: https://github.com/apache/hudi/pull/19758

   ### Describe the issue this Pull Request addresses
   
   `TestHoodieClientMultiWriter#testMultiWriterWithInsertsToDistinctPartitions` 
can fail intermittently. It starts several writers concurrently in a tight 
submission loop, all contending for the same in-process lock, and under CI load 
the lock-acquisition timing occasionally interleaves in a way that fails the 
assertions even though the multi-writer behavior itself is correct.
   
   ### Summary and Changelog
   
   Add a small 100ms wait between concurrent writer-task submissions in the 
test so the writers are staggered slightly. This is test-only. The writers 
still overlap (each writer's Spark client setup plus OCC commit far exceeds 
100ms, and completion is still gathered together afterwards), so the 
concurrency the test exercises is preserved.
   
   ### Impact
   
   No production behavior change. Reduces intermittent CI failures for this 
test.
   
   ### Risk Level
   
   low. Test-only timing change, covered by the existing test.
   
   ### Documentation Update
   
   none
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Enough context is provided in the sections above
   - [ ] 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]

Reply via email to