Skip to content

Fix crash in get_member_id() if client group is not initialized #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 25, 2025

Conversation

azat
Copy link
Member

@azat azat commented May 25, 2025

Since in this case rd_kafka_memberid() return NULL, and std::string cannot be constructed from NULL 1.

Refs: ClickHouse/ClickHouse#80674 (comment)
Upstream: mfontanini#320

@azat azat merged commit 114d5be into ClickHouse/release-0.4.1 May 25, 2025
azat added a commit to azat/ClickHouse that referenced this pull request May 25, 2025
azat added a commit to azat/ClickHouse that referenced this pull request May 25, 2025
…om NULL

It was likely an issue when the connection to broker had been failed.

Refs: ClickHouse#80674
Refs: ClickHouse/cppkafka#4
@azat azat deleted the get_member_id-crash branch May 25, 2025 16:39
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.

1 participant