DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
- Topic ID resolution. For v6 requests, the broker resolves topic IDs to names via the metadata cache before authorization and partition validation. This follows the same pattern as
OffsetCommitv10. The per-partition error code returned for an invalid topic is determined in this order:- If the topic ID cannot be resolved by the broker, return
UNKNOWN_TOPIC_IDfor all partitions of that topic. - If the client is not authorized for the resolved topic name, return
TOPIC_AUTHORIZATION_FAILEDfor all partitions of that topic. - If a requested partition does not exist, return
UNKNOWN_TOPIC_OR_PARTITIONfor that partition only.
- If the topic ID cannot be resolved by the broker, return
- Error mapping. For v6+,
GROUP_ID_NOT_FOUNDandSTALE_MEMBER_EPOCHare returned directly instead of being mapped toILLEGAL_GENERATION. For v0-5, the existing mapping is preserved. - Persisting topic IDs. The broker populates the existing
topicIdtagged field inOffsetCommitValuev4 with the real topic ID instead ofUuid.ZERO_UUID. No new record schema is introduced.
...
sendOffsetsToTransactionAPI unchanged. The public API does not change.- Topic ID resolution. When
sendOffsetsToTransactionis called and the broker supports v6, the producer adds the topics from the offset map to its metadata, waits for a refresh (bounded bymax.block.ms), and uses the resolved topic IDs to build the requestthe topics from the offset map to its metadata cache and waits for a refresh (bounded bymax.block.ms) before building the request with the resolved topic IDs. No explicit cleanup is performed: the producer's metadata cache already evicts topics that have been idle for longer thanmetadata.max.idle.ms(default 5 minutes), which gives transient semantics for free. Topics that are committed repeatedly stay cached, which avoids a metadata wait on subsequent commits. - Fallback. If the broker supports v6 but any topic in the offset map has an unavailable topic ID, the producer falls back to v5 for that request (all-or-nothing, same pattern as
OffsetCommit'scanUseTopicIds). In practice, this should never trigger since Transaction V2 requires KRaft, which always assigns topic IDs. - Error handling.
GROUP_ID_NOT_FOUNDandSTALE_MEMBER_EPOCHare treated as abortable errors. The application must abort the transaction.UNKNOWN_TOPIC_IDis treated as a retriable error consistent withUNKNOWN_TOPIC_OR_PARTITION. SinceUnknownTopicIdExceptionis aRetriableException, it falls into the existing retriable error handling path: the partition stays inpendingTxnOffsetCommitsand the handler re-enqueues the request. - Response mapping. For v6 responses (keyed by topic ID), the handler uses the topic ID to name mapping built during request construction to correlate responses back to
TopicPartition.
...