pekko/akka-stream-tests/src/test
Christopher Batey 82e2e2c551
RestartWithBackOff delay cancel to wait for failure (#24795)
* RestartWithBackOff delay cancel to wait for failure

For wrapping a user flow with FlowRestart.onFlowWithFailures when the user
flow it fails signals a cancel upstream and a failure downstream.

These are intercepted by a SubSource/SubSink. In the case
the SubSource receives the cancel before the SubSink receives
the real upstream is wrongly canceled leading to an error
when the SubSink restarts the flow.

This commit introduces a delay for the cancel so that the failure
is more likely to win.

Would be far better to propagate a reason for cancel so this could
be deterministic. See https://github.com/akka/akka/pull/23909

Refs #24528 #24726
2018-04-27 12:09:16 +01:00
..
java/akka/stream GraphDSL create with Seq[Graph] added #24067 2018-03-26 17:41:54 +02:00
java-jdk9-only/akka/stream/javadsl Issue 24594: Integration with sbt-headers and initial header population 2018-03-13 15:45:55 +01:00
resources Simpler tls over tcp #24153 2018-01-16 18:05:08 +01:00
scala/akka/stream RestartWithBackOff delay cancel to wait for failure (#24795) 2018-04-27 12:09:16 +01:00
scala-jdk9-only/akka/stream/scaladsl Issue 24594: Integration with sbt-headers and initial header population 2018-03-13 15:45:55 +01:00