You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2026/07/01 16:09:00 UTC

[jira] [Resolved] (KAFKA-20712) TransactionLogMessageFormatter and TransactionLogMessageParser output numeric transactionStatus instead of state name

     [ https://issues.apache.org/jira/browse/KAFKA-20712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chia-Ping Tsai resolved KAFKA-20712.
------------------------------------
    Fix Version/s: 4.4.0
       Resolution: Fixed

> TransactionLogMessageFormatter and TransactionLogMessageParser output numeric transactionStatus instead of state name
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-20712
>                 URL: https://issues.apache.org/jira/browse/KAFKA-20712
>             Project: Kafka
>          Issue Type: Bug
>          Components: tools
>    Affects Versions: 4.0.0
>            Reporter: Federico Valeri
>            Assignee: Federico Valeri
>            Priority: Major
>             Fix For: 4.4.0
>
>
> After KAFKA-18207, the transactionStatus field in the decoded output is rendered as its raw int8 value (e.g., 4) instead of the human readable state name (e.g., CompleteCommit) which is useful for debugging.
> This affects both:
>  - kafka-dump-log.sh --transaction-log-decoder (which uses TransactionLogMessageParser in DumpLogSegments)
>  - kafka-console-consumer.sh with TransactionLogMessageFormatter
> Steps to reproduce:
> {noformat}
> bin/kafka-dump-log.sh --transaction-log-decoder \
>   --files /tmp/kafka-logs/__transaction_state-0/00000000000000000000.log
> {noformat}
> Expected output (field excerpt):
> {noformat}
> "transactionStatus":"CompleteCommit"
> {noformat}
> Actual output:
> {noformat}
> "transactionStatus":4
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)