You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by dguy <gi...@git.apache.org> on 2017/05/23 11:36:37 UTC

[GitHub] kafka pull request #3126: KAFKA-5260: Producer should not send AbortTxn unle...

GitHub user dguy opened a pull request:

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

    KAFKA-5260: Producer should not send AbortTxn unless transaction has actually begun

    Keep track of when a transaction has begun by setting a flag, `transactionStarted` when a successfull `AddPartitionsToTxnResponse` or `AddOffsetsToTxnResponse` had been received. If an `AbortTxnRequest` about to be sent and `transactionStarted` is false, don't send the request and transition the state to `READY`

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

    $ git pull https://github.com/dguy/kafka kafka-5260

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

    https://github.com/apache/kafka/pull/3126.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 #3126
    
----
commit e8e86e764ddc24d193bcaf0c2ba440a92d0a2534
Author: Damian Guy <da...@gmail.com>
Date:   2017-05-23T11:33:23Z

    don't send AbortTxn unless a transaction is Ongoing

----


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

[GitHub] kafka pull request #3126: KAFKA-5260: Producer should not send AbortTxn unle...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


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