kafbat / kafka-ui

Open-Source Web UI for managing Apache Kafka clusters
http://ui.docs.kafbat.io
Apache License 2.0
517 stars 51 forks source link

Serde: Support `__transaction_state` topic #407

Open ver-alex opened 4 months ago

ver-alex commented 4 months ago

Issue submitter TODO list

Is your proposal related to a problem?

I would like to be able to show content of the Kafka internal topics.

Describe the feature you're interested in

To get a better insight into the internal Kafka transactions topic __transaction_state it would be great to be able to show the key/value in a readable format. The necessary serdes/formatters should be available in the Kafka distribution/clients.

Describe alternatives you've considered

We are currently using the kafka-console-consumer.sh with the formatter for transactions.

$ kafka-console-consumer.sh --formatter "kafka.coordinator.transaction.TransactionLog\$TransactionLogMessageFormatter" --bootstrap-server localhost:29092 --topic __transaction_state --from-beginning

Version you're running

2956664 v1.0.0

Additional context

No response

github-actions[bot] commented 4 months ago

Hi ver-alex! 👋

Welcome, and thank you for opening your first issue in the repo!

Please wait for triaging by our maintainers.

As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues. Sponsorship link

If you plan to raise a PR for this issue, please take a look at our contributing guide.

Haarolean commented 4 months ago

I see that __transaction_state messages are not deserialized properly, but __consumer_offsets looks fine to me, can you attach a screenshot?

image

There's also a __consumer_offsets built-in serde which should be used by default for __consumer_offsets topic:

image
kapybro[bot] commented 4 months ago

Further user feedback is requested. Please reply within 7 days or we might close the issue.

ver-alex commented 4 months ago

Sorry, my bad. __consumer_offsets work as expected. Will amend the initial description.

kapybro[bot] commented 4 months ago

Thanks for the additional feedback! We'll get back to your issue soon.