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

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

bob-barrett commented on pull request #7176: KAFKA-8325: Remove batch from 
in-flight requests when handling MESSAG…
URL: https://github.com/apache/kafka/pull/7176
 
 
   …E_TOO_LARGE error
   
   This patch fixes a bug in the handling of MESSAGE_TOO_LARGE errors. The 
large batch is split, the smaller batches are re-added to the accumulator, and 
the batch is deallocated, but it was not removed from the list of in-flight 
batches. When the batch was eventually expired from the in-flight batches, the 
producer would try to deallocate it a second time, causing an error. This patch 
changes the behavior to correctly remove the batch from the list of in-flight 
requests.
   
   *More detailed description of your change,
   if necessary. The PR title and PR message become
   the squashed commit message, so use a separate
   comment to ping reviewers.*
   
   *Summary of testing strategy (including rationale)
   for the feature or bug fix. Unit and/or integration
   tests are expected for any behaviour change and
   system tests should be considered for larger changes.*
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Remove from the incomplete set failed. This should be impossible
> ----------------------------------------------------------------
>
>                 Key: KAFKA-8325
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8325
>             Project: Kafka
>          Issue Type: Bug
>          Components: producer 
>    Affects Versions: 2.1.0, 2.3.0
>            Reporter: Mattia Barbon
>            Assignee: Bob Barrett
>            Priority: Major
>
> I got this error when using the Kafka producer. So far it happened twice, 
> with an interval of about 1 week.
> {{ERROR [2019-05-05 08:43:07,505] 
> org.apache.kafka.clients.producer.internals.Sender: [Producer 
> clientId=<redacted>, transactionalId=<redacted>] Uncaught error in kafka 
> producer I/O thread:}}
> {{ ! java.lang.IllegalStateException: Remove from the incomplete set failed. 
> This should be impossible.}}
> {{ ! at 
> org.apache.kafka.clients.producer.internals.IncompleteBatches.remove(IncompleteBatches.java:44)}}
> {{ ! at 
> org.apache.kafka.clients.producer.internals.RecordAccumulator.deallocate(RecordAccumulator.java:645)}}
> {{ ! at 
> org.apache.kafka.clients.producer.internals.Sender.failBatch(Sender.java:717)}}
> {{ ! at 
> org.apache.kafka.clients.producer.internals.Sender.sendProducerData(Sender.java:365)}}
> {{ ! at 
> org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:308)}}
> {{ ! at 
> org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:233)}}
> {{ ! at java.lang.Thread.run(Thread.java:748)}}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to