Skip to content
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

Fix handling of NULL pointer in NativeClient::rebalance_protocol #417

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

bruceg
Copy link
Contributor

@bruceg bruceg commented Dec 30, 2021

The underlying function call rdsys::rd_kafka_rebalance_protocol can
return a NULL pointer in the case of an error. The callers within
librdkafka treat this similarly to it returning "NONE", so we will
return RebalanceProtocol::None to emulate this behavior.

Closes #416

The underlying function call `rdsys::rd_kafka_rebalance_protocol` can
return a NULL pointer in the case of an error. The callers within
librdkafka treat this similarly to it returning "NONE", so we will
return `RebalanceProtocol::None` to emulate this behavior.
Copy link
Collaborator

@benesch benesch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much!

@benesch benesch merged commit 7a2355f into fede1024:master Dec 30, 2021
@bruceg bruceg deleted the fix-null-rebalance branch December 30, 2021 16:46
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.

Segfault in NativeClient::rebalance_protocol
2 participants