GitHub user wlsc opened a pull request:

    https://github.com/apache/kafka/pull/2697

    MINOR: fixed memory pollution in KafkaConsumer

    This PL fixes memory pollution in KafkaConsumer by removing creation of the 
unnecessary HashSet each time we need to create unmodifiableSet and using 
unmodifiableMap when we just need to commit offsets.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wlsc/kafka trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/2697.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 #2697
    
----
commit 2d71b1f4b90680ad4eeac7b13c85373a19127c98
Author: Wladimir Schmidt <wlsc....@gmail.com>
Date:   2017-03-16T20:35:44Z

    * exchanged HashMap with unmodifiableMap in KafkaConsumer (commitSync and 
commitAsync functions)

commit 0cdd0d691fd67800674833a5809b357ee6dc4afa
Author: Wladimir Schmidt <wlsc....@gmail.com>
Date:   2017-03-16T20:45:54Z

    * fixed memory pollution due to unnecessary creation of additional HashMap

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to