Skip to content

[Bug] SparkE2eTest fails on trailing Spark shutdown ERROR logs other than CoarseGrainedScheduler #9970

Description

@thswlsqls

Search before asking

  • I searched in the issues and found nothing similar.

Paimon version
master @ 1d368b4 (2.2-SNAPSHOT)

Compute Engine
Spark (paimon-e2e-tests)

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.

Observed runs:

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.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions