[ 
https://issues.apache.org/jira/browse/KAFKA-4966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15944946#comment-15944946
 ] 

ASF GitHub Bot commented on KAFKA-4966:
---------------------------------------

GitHub user Aegeaner opened a pull request:

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

    KAFKA-4966:Producer throw a NullPointerException under a network 
environment where packet loss and error packets exist.

    fix KAFKA-4966 NPE in sender complete batch

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

    $ git pull https://github.com/Aegeaner/kafka KAFKA-4966

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

    https://github.com/apache/kafka/pull/2753.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 #2753
    
----
commit 4c063fda99096cc07deb2e1a424f17b7ed3aeee4
Author: Aegeaner <[email protected]>
Date:   2017-03-28T11:01:29Z

    fix complete batch NPE

----


> Producer throw a NullPointerException under a network environment where 
> packet loss and error packets exist.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-4966
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4966
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions: 0.10.0.1, 0.10.2.0
>            Reporter: Bo Wang
>
> 2017-03-27 18:45:54,757 | ERROR | [kafka-producer-network-thread | 
> producer-1] |  Uncaught error in request completion:  | 
> org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:284)
> java.lang.NullPointerException
>       at 
> org.apache.kafka.clients.producer.internals.Sender.canRetry(Sender.java:342)
>       at 
> org.apache.kafka.clients.producer.internals.Sender.completeBatch(Sender.java:310)
>       at 
> org.apache.kafka.clients.producer.internals.Sender.handleProduceResponse(Sender.java:286)
>       at 
> org.apache.kafka.clients.producer.internals.Sender.access$100(Sender.java:57)
>       at 
> org.apache.kafka.clients.producer.internals.Sender$1.onComplete(Sender.java:372)
>       at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:282)
>       at 
> org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:241)
>       at 
> org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:136)
>       at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to