Github user EronWright commented on the issue:
https://github.com/apache/flink/pull/5427
@StephanEwen thanks again for the feedback, which I took to heart and
simplified the hook. It now has a `reset ` method that is called only in the
special case.
I will refactor the thread context code in a separate PR.---
