Repository navigation
Fix Dataflow Validate runner test flakiness for streaming tests - #40952
Conversation
Even though stockout is a retryable error, current TestDataflowRunner fails the test immediately once ERROR level job logs detected, causing streaming tests being much more flaky than the batch After apache#40292, per-JVM test concurrency multiplied by 6x. While batch tests have pipelines merged into single Dataflow job, streaming doesn't, add additional pressure. * Fix TestDataflowRunner not tolerate transient stockout error in streaming * Reduce parallelism for streaming Dataflow validate runner tests
There was a problem hiding this comment.
📋 Review Summary
This PR reduces flakiness in Dataflow streaming ValidatesRunner tests by ignoring transient service errors (containing "The service will retry") in TestDataflowRunner.ErrorMonitorMessagesHandler and reducing the default per-JVM test thread concurrency for unbatched/streaming runs from 6 to 2. The changes are well-targeted, clear, and accompanied by unit test coverage.
🔍 General Feedback
- The filtering of retriable
JOB_MESSAGE_ERRORmessages prevents premature cancellation of streaming jobs during transient worker startup issues (such as stockouts) while still preserving full visibility viaMonitoringUtil.LoggingHandlerandLOG.info. - Lowering default unbatched
parallelThreadsto 2 inbuild.gradleappropriately limits concurrent standalone streaming Dataflow jobs across test worker forks.
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
|
R: @aIbrahiim |
|
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment |
|
@Abacn looks good to me and this actually matches our investigation on the Streaming , TagEncodingV2, DataflowV2 workflows |
|
I have an identical PR that I got delayed in sending out :) |
Even though stockout is a retryable error, current TestDataflowRunner fails the test immediately once SEVERE level job logs detected, causing streaming tests being much more flaky than the batch
After #40292, per-JVM test concurrency multiplied by 6x. While batch tests have pipelines merged into single Dataflow job, streaming doesn't, add additional pressure.
Fix TestDataflowRunner not tolerate transient stockout error in streaming
Reduce parallelism for streaming Dataflow validate runner tests