[
https://issues.apache.org/jira/browse/KAFKA-4728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15851276#comment-15851276
]
ASF GitHub Bot commented on KAFKA-4728:
---------------------------------------
GitHub user je-ik opened a pull request:
https://github.com/apache/kafka/pull/2491
[KAFKA-4728] KafkaConsumer#commitSync should clone its input
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/je-ik/kafka KAFKA-4728
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/2491.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 #2491
----
commit 3f0bf0e5c24e9c4a4c4149c14438b2f95f870b32
Author: Jan Lukavsky <[email protected]>
Date: 2017-02-03T09:52:18Z
[KAFKA-4728] KafkaConsumer#commitSync should clone its input
----
> KafkaConsumer#commitSync should clone its input
> ------------------------------------------------
>
> Key: KAFKA-4728
> URL: https://issues.apache.org/jira/browse/KAFKA-4728
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.10.1.1
> Reporter: Jan Lukavský
> Attachments: KAFKA-4728.patch
>
>
> The `commitSync` method should clone input map to prevent live-lock in
> situation when user code uses synchronization on the map. Cloning the map
> prevents the consumer of the response to the `commitSync` request to block
> (this might be different thread than the original issuer of the request).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)