Hello Flink community!
I've come across of employing an "Iterator Data Sync"[1] approach to test output from a streaming pipeline. The pipeline consists of a single ProcessFunction which side-outputs some events. I'd like to collect both the primary and the side-output streams in my test. I do so by calling DataStreamUtils#collect[2]. The problem is that the implementation of DataStreamUtils#collect[2] method calls the StreamEnvironment#execute[3] method which makes it impossible to collect output from both streams.
The preferable behaviour would be not to trigger a pipeline execution and leave it to a user.
What do you think about that? I don't mind to submit a PR.
Kind Regards,
Mike Pryakhin