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

kafka set failed state when produce or fetch failed #1685

Merged
merged 2 commits into from
Jan 13, 2025
Merged

Conversation

kedixa
Copy link
Contributor

@kedixa kedixa commented Jan 13, 2025

No description provided.

@Barenboim Barenboim linked an issue Jan 13, 2025 that may be closed by this pull request
break;
default:
this->error = toppar->get_error();
if (toppar->get_error()) {
Copy link
Contributor

@Barenboim Barenboim Jan 13, 2025

Choose a reason for hiding this comment

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

怎么还出来行尾的 '{'。

break;
default:
ctx_ = toppar->get_error();
else if (toppar_error != 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

好像其它地方并没有加上 != 0这个判断。可以直接写成:

else if (toppar_error)
{
}

@Barenboim Barenboim merged commit 8cb8935 into sogou:master Jan 13, 2025
2 checks passed
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.

kafka produce消息时发生了leader切换
2 participants