Skip to content

Conversation

@nateab
Copy link

@nateab nateab commented Feb 11, 2026

When a Kafka transaction's producer ID mapping expires on the broker, commitTransaction() throws InvalidPidMappingException. Previously this fell through to the generic Exception handler, calling signalFailedWithUnknownReason which triggers a failover. On recovery the same expired transaction is replayed, causing an infinite restart loop.

Catch InvalidPidMappingException explicitly and call signalFailedWithKnownReason so the framework's configured strategy can handle it (e.g., skip the unrecoverable transaction).

…afkaCommitter

When a Kafka transaction's producer ID mapping expires on the broker,
commitTransaction() throws InvalidPidMappingException. Previously this
fell through to the generic Exception handler, calling
signalFailedWithUnknownReason which triggers a failover. On recovery
the same expired transaction is replayed, causing an infinite restart
loop.

Catch InvalidPidMappingException explicitly and call
signalFailedWithKnownReason so the framework's configured strategy can
handle it (e.g., skip the unrecoverable transaction).
@boring-cyborg
Copy link

boring-cyborg bot commented Feb 11, 2026

Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html)

@nateab nateab changed the title Handle InvalidPidMappingException as known failure in KafkaCommitter [FLINK-39072] Handle InvalidPidMappingException as known failure in KafkaCommitter Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant