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

[Bugfix]leader重选时忽略ElectionNotNeededException异常,返回成功 #988

Merged
merged 1 commit into from
Apr 3, 2023
Merged

[Bugfix]leader重选时忽略ElectionNotNeededException异常,返回成功 #988

merged 1 commit into from
Apr 3, 2023

Conversation

zhaoli2333
Copy link

@zhaoli2333 zhaoli2333 commented Mar 23, 2023

请不要在没有先创建Issue的情况下创建Pull Request。

变更的目的是什么

fix issue 987

简短的更新日志

更新任务状态时要执行leader重选,一部分leader重选失败,导致集群均衡任务状态无法更新。
修复方法:leader重选报错ElectionNotNeededException: Leader election not needed for topic partition时,可以认为无需执行重选,直接忽略该异常即可。

验证这一变化

请遵循此清单,以帮助我们快速轻松地整合您的贡献:

  • 一个 PR(Pull Request的简写)只解决一个问题,禁止一个 PR 解决多个问题;
  • 确保 PR 有对应的 Issue(通常在您开始处理之前创建),除非是书写错误之类的琐碎更改不需要 Issue ;
  • 格式化 PR 及 Commit-Log 的标题及内容,例如 [Bugfix]修复用户信息修改后,用户列表会抛出空指针异常的问题(#860) #861 。PS:Commit-Log 需要在 Git Commit 代码时进行填写,在 GitHub 上修改不了;
  • 编写足够详细的 PR 描述,以了解 PR 的作用、方式和原因;
  • 编写必要的单元测试来验证您的逻辑更正。如果提交了新功能或重大更改,请记住在 test 模块中添加 integration-test;
  • 确保编译通过,集成测试通过;

@zhaoli2333 zhaoli2333 changed the title [bugfix]leader重选时忽略ElectionNotNeededException异常,返回成功 [Bugfix]leader重选时忽略ElectionNotNeededException异常,返回成功 Mar 23, 2023
@ZQKC ZQKC linked an issue Apr 3, 2023 that may be closed by this pull request
1 task
@ZQKC ZQKC merged commit 9f6882c into didi:ve_3.x Apr 3, 2023
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.

clusterBalanceJobTask报错,导致集群均衡任务状态无法更新
2 participants