Github user NicoK commented on the issue:
https://github.com/apache/flink/pull/6254
I updated the commit with a fixed unit test and added a big TODO on what
else would need to be adapted in order to go with this solution (no updated
commit message yet).
Since this is even more intrusive and ugly than the changes before, I'll
close this PR in favour of another solution developed in #6257.---
