Github user tillrohrmann commented on the issue:
https://github.com/apache/flink/pull/5334
Thanks for the review @GJL. The former is not an intended feature but we
can guard against it by overwriting `FLINK_MODE`. I'll change it and then merge
the PR.---
