No description
The problem was reproduced with the TCK PrefixAndTailTest required_spec313_cancelMustMakeThePublisherEventuallyDropAllReferencesToTheSubscriber The tck subscriber was still referenced. Profiling revealed that the root cause was the VirtualPublisher that holds a reference to the realPublisher, which was MultiStreamOutputProcessor$SubstreamOutput, which had the reference to the subscriber. The VirtualPublisher is created by the Sink.publisher in the test, and the test holds on to that VirtualPublisher reference. The solution is to null out realPublisher field in the VirtualPublisher. The old workaround with the NullSubscriber was removed. Also made Sink.publisher reject additional subscribers. |
||
|---|---|---|
| akka-docs-dev | ||
| akka-http/src/main | ||
| akka-http-core/src | ||
| akka-http-testkit/src | ||
| akka-http-tests/src/test | ||
| akka-parsing/src/main | ||
| akka-stream/src/main | ||
| akka-stream-tck/src/test/scala/akka/stream/tck | ||
| akka-stream-testkit/src/test | ||
| akka-stream-tests/src/test | ||