Github user StephanEwen commented on the issue:
https://github.com/apache/flink/pull/4798
Probably good change for now.
I think in the long run, the TaskManager should give each Task a
sub-directory and make sure that sub directory is cleared whenever tasks
finish/cancel/fail. That way this safety net is more general.---
