This is also a major issue for batch with off-heap memory and memory
preallocation turned off:
https://issues.apache.org/jira/browse/FLINK-4094
Not hard to fix though as we simply need to reliably clear the direct
memory instead of relying on garbage collection. Another possible fix
is to maintain memory pools independently of the preallocation mode. I
think this is fine because preallocation:false suggests that no memory
will be preallocated but not that memory will be freed once acquired.

Reply via email to