You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "majialoong (via GitHub)" <gi...@apache.org> on 2026/06/02 15:06:24 UTC

[PR] KAFKA-18209: Clean up transaction state topic config logic [kafka]

majialoong opened a new pull request, #22456:
URL: https://github.com/apache/kafka/pull/22456

   This PR cleans up the `__transaction_state` topic config logic by removing scattered configuration related constants from `TransactionLog` and keeping it focused on serialization/deserialization.
   
   It also moves transaction state topic config construction to `TransactionCoordinator` and renames `transactionTopicConfigs` to `transactionStateTopicConfigs` for clarity, aligning with the current group/share coordinator pattern where coordinators expose internal topic configs to the broker.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18209: Clean up transaction state topic config logic [kafka]

Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 merged PR #22456:
URL: https://github.com/apache/kafka/pull/22456


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18209: Clean up transaction state topic config logic [kafka]

Posted by "majialoong (via GitHub)" <gi...@apache.org>.
majialoong commented on PR #22456:
URL: https://github.com/apache/kafka/pull/22456#issuecomment-4603966150

   Hi @mimaison , would you mind reviewing this PR when you have a chance?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18209: Clean up transaction state topic config logic [kafka]

Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on code in PR #22456:
URL: https://github.com/apache/kafka/pull/22456#discussion_r3367766022


##########
transaction-coordinator/src/main/java/org/apache/kafka/coordinator/transaction/TransactionLog.java:
##########
@@ -103,23 +94,6 @@ public static byte[] valueToBytes(TxnTransitMetadata txnMetadata,
         return MessageUtil.toVersionPrefixedBytes(logValueVersion, value);
     }
 
-    /**
-     * Decodes the transaction log messages' key
-     *
-     * @return the transactional id
-     * @throws IllegalStateException if the version is not a valid transaction log key version
-     */
-    public static String readTxnRecordKey(ByteBuffer buffer) {

Review Comment:
   nice cleanup! we missed this in #21405



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org