You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] SparkE2eTest fails on trailing Spark shutdown ERROR logs other than CoarseGrainedScheduler #9970
Minimal reproduce step
Run the e2e-flink1 CI lane; SparkE2eTest.testFlinkWriteAndSparkRead fails intermittently in E2eReaderTestBase.checkQueryResult because the spark-sql shutdown races with RPC dispatch and logs an ERROR to stdout after the correct result rows. SparkE2eTest.stripCoarseGrainedSchedulerShutdownError() (#8907) only cuts the ERROR Utils: Uncaught exception in thread dispatcher-CoarseGrainedScheduler message, but the race also logs ERROR TransportRequestHandler: Error while invoking RpcHandler#receive() for one-way message. with a Could not find AppClient stack trace. The exit code is 0, so the tail passes the guard and breaks the isEqualTo comparison.
What doesn't meet your expectations?
The comparison should ignore any trailing Spark shutdown log, not only the one message #8907 special-cased.
Anything else?
Spark's default log4j2 pattern (%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n%ex) gives every ERROR line the same timestamp prefix, so the test can cut at the first such line.
Activity