kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apurva Mehta (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-5286) Producer should await transaction completion in close
Date Tue, 25 Jul 2017 22:39:00 GMT

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

Apurva Mehta commented on KAFKA-5286:

I think that calling {{abortTransaction}} from close if there is an open transaction makes
sense and is a slight improvement. It can wait for the next release (1.0.0) though.

> Producer should await transaction completion in close
> -----------------------------------------------------
>                 Key: KAFKA-5286
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5286
>             Project: Kafka
>          Issue Type: Sub-task
>          Components: clients, core, producer 
>    Affects Versions:
>            Reporter: Jason Gustafson
>             Fix For: 1.0.0
> We should wait at least as long as the timeout for a transaction which has begun completion
(commit or abort) to be finished. Tricky thing is whether we should abort a transaction which
is in progress. It seems reasonable since that's the coordinator will either timeout and abort
the transaction or the next producer using the same transactionalId will fence the producer
and abort the transaction. In any case, the transaction will be aborted, so perhaps we should
do it proactively.

This message was sent by Atlassian JIRA

View raw message