[ https://issues.apache.org/jira/browse/KAFKA-8710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16893035#comment-16893035 ]
ASF GitHub Bot commented on KAFKA-8710: --------------------------------------- bob-barrett commented on pull request #7115: KAFKA-8710: Update InitProducerId to allow transactional producers to… URL: https://github.com/apache/kafka/pull/7115 … bump epoch and continue running after errors This patch implements the broker-side changes for KIP-360. It adds two new fields to InitProducerId, lastEpoch and producerId. Passing these values allows the TransactionCoordinator to safely bump a producer's epoch after some failures (such as UNKNOWN_PRODUCER_ID and INVALID_PRODUCER_ID_MAPPING). When a producer calls InitProducerId after a failure, the coordinator first checks the producer ID from the request to make sure no other producer has been started using the same transactional ID. If it is safe to continue, the coordinator checks the epoch from the request; if it matches the existing epoch, the epoch is bumped and the producer can safely continue. If it matches the previous epoch, the the current epoch is returned without bumping. Otherwise, the producer is fenced. *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 > InitProducerId changes for KIP-360 > ---------------------------------- > > Key: KAFKA-8710 > URL: https://issues.apache.org/jira/browse/KAFKA-8710 > Project: Kafka > Issue Type: Improvement > Components: core > Affects Versions: 2.3.0 > Reporter: Bob Barrett > Assignee: Bob Barrett > Priority: Major > > As part of KIP-360, InitProducerId needs to accept two additional parameters, > the current producerId and the current producerEpoch, and it needs to allow > producers to safely re-initialize a producer ID and continue processing as > long as no other producer with the same transactional ID has started up. -- This message was sent by Atlassian JIRA (v7.6.14#76016)