Class TestPipeline.StandaloneRerunRequested

java.lang.Object
java.lang.Throwable
java.lang.Error
org.apache.beam.sdk.testing.TestPipeline.StandaloneRerunRequested
All Implemented Interfaces:
Serializable
Enclosing class:
TestPipeline

@Internal public static final class TestPipeline.StandaloneRerunRequested extends Error
For internal use only; no backwards-compatibility guarantees.

Thrown out of TestPipeline.run() by a runner that merged this pipeline into a job shared with other tests and could not reach a verdict for this test from that job. The pipeline is not run again by the runner: once the shared job was built from it, this pipeline's graph is no longer guaranteed to be the one the test constructed. Instead the whole test has to be executed again from scratch, with standalone execution forced so that the fresh pipeline runs as a job of its own. BeamParallelJunit4Runner does that automatically (once); under any other runner this surfaces as the test's failure.

An Error rather than an exception so that test code wrapping run() in catch (Exception e) or assertThrows(Exception.class, ...) cannot mistake it for the failure it was looking for.

See Also:
  • Constructor Details

    • StandaloneRerunRequested

      public StandaloneRerunRequested(String message)