Skip to content

Transaction: Produce to non-existing topic results in a timeout #4966

Open
@tmanninger

Description

Hi,

in my kafka environment, the auto creation of topics is disabled:
auto.create.topics.enable = false

When i produce a record to a non-existing topic in a transaction, this results in a timeout (default 30seconds):
Current transaction failed in state BeginCommit: 1 message(s) failed delivery (see individual delivery reports)
Broker: Unknown topic or partition

Is there a option to immediately abort a transaction if the topic does not exist?
Waiting for a non-existent topic with auto.create.topics.enable = false makes no sense.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions