GitHub user chiwanpark opened a pull request:
https://github.com/apache/flink/pull/751
[FLINK-2076] [runtime] Fix memory leakage in MutableHashTable
Hi. This PR contains a bug fix for
[FLINK-2076](https://issues.apache.org/jira/browse/FLINK-2076).
When `prepareNextPartition` method runs with some pending partitions, the
memory leakage can occur at `memory.add(getNextBuffer())` statement (Line 515,
516). In common case, there are extra memory spaces for hash table so first and
second call of `getNextBuffer()` return memory segment.
But in extreme case such as a case described in JIRA, the second call of
`getNextBuffer()` can return null and this null makes the memory leakage.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chiwanpark/flink FLINK-2076
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/751.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #751
----
commit e9aa4d9a1ca36178f3f860b1997d5f92ada51c3f
Author: Chiwan Park <[email protected]>
Date: 2015-05-30T18:27:17Z
[FLINK-2076] [runtime] Fix memory leakage in MutableHashTable
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---