Skip to content

[fix][client] Log the topic name instead of its pointer in MultiTopicsConsumerImpl - #629

Open
groeneai wants to merge 1 commit into
apache:mainfrom
groeneai:fix-multi-topics-consumer-topic-log
Open

groeneai wants to merge 1 commit into
apache:mainfrom
groeneai:fix-multi-topics-consumer-topic-log

Conversation

@groeneai

Copy link
Copy Markdown

Motivation

In MultiTopicsConsumerImpl::subscribeTopicPartitions, topicName is a TopicNamePtr, so the "Creating Consumer for" debug log prints the address of the TopicName object instead of the topic.

Modifications

Log topicName->toString().

Verifying this change

  • Make sure that the change passes the CI checks.

This change is a trivial rework / code cleanup without any test coverage.

Documentation

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)
    Log message change only.

This fix comes from the fork of this repository that ClickHouse uses for its Pulsar table engine (ClickHouse/ClickHouse#64184).

🤖 Generated with Claude Code

`topicName` is a `TopicNamePtr`, so streaming it printed the heap address of
the `TopicName` object instead of the name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants