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

Reply via email to