Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hotfix] [network] Release unpooled buffer for events.
So far, these buffers never needed to be released, because they do not come from a buffer pool. They were simply garbage collected. When changing the blocking partitions to use memory mapped files, these buffer were refering for a short time to an unmapped memory region (after the partition is released). Because the buffers were not accessed any more by any code, it did not matter when regularly running Flink. But, it did segfault the JVM when attaching a debugger and exploring just that part of the code. This happens because the debugger calls toString() on the buffer object as part of its rendering of the current stack frame. The toString() method access the buffer contents, which is an unmapped region of memory, and boom!
- Loading branch information