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(rdkafka): fix unintended drop of client in fetch_watermarks #200

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

wangrunji0408
Copy link
Member

@wangrunji0408 wangrunji0408 commented Mar 22, 2024

Signed-off-by: Runji Wang wangrunji0408@163.com

release madsim-rdkafka v0.3.4 and yank v0.3.3

Signed-off-by: Runji Wang <wangrunji0408@163.com>
Signed-off-by: Runji Wang <wangrunji0408@163.com>
Signed-off-by: Runji Wang <wangrunji0408@163.com>
@wangrunji0408 wangrunji0408 enabled auto-merge (squash) March 22, 2024 15:18
@wangrunji0408 wangrunji0408 merged commit 4ebdbcd into main Mar 22, 2024
24 checks passed
@wangrunji0408 wangrunji0408 deleted the wrj/fix-rdkafka branch March 22, 2024 15:34
let topic_c = CString::new(topic.to_string())?;
let native_client = unsafe { NativeClient::from_ptr(self.native_ptr()) };
let native_ptr = NativePtr(self.native_ptr());
Copy link
Contributor

Choose a reason for hiding this comment

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

It does not seems to be safe if we cancel the future for spawn_blocking. 😕 We may require an Arc<Self> here considering that StreamConsumer holds an Arc over BaseConsumer.

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