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:pd) become a leader before the addLeaderStateListener #1062

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

ye-xiaowei
Copy link
Contributor

Motivation:

pd 启动之后会添加一个 onLeaderStart 的回调,如果在启动之后再添加则有可能 leader 已经选举好而且调用完了 onLeaderStart。

Modification:

将添加回调代码放置在 init 之前

Result:

Fixes #1060

Copy link

sofastack-cla bot commented Jan 2, 2024

Hi @ye-xiaowei, welcome to SOFAStack community, Please sign Contributor License Agreement!

After you signed CLA, we will automatically sync the status of this pull request in 3 minutes.

Copy link
Contributor

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

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

LGTM

@fengjiachun
Copy link
Contributor

@ye-xiaowei 非常感谢,你能签一下 CLA 吗?

@ye-xiaowei
Copy link
Contributor Author

嗯嗯,我以为登录一下就好了

@ye-xiaowei
Copy link
Contributor Author

@ye-xiaowei 非常感谢,你能签一下 CLA 吗?

现在的状态是签好了吗

@fengjiachun
Copy link
Contributor

fengjiachun commented Jan 3, 2024

@ye-xiaowei 非常感谢,你能签一下 CLA 吗?

现在的状态是签好了吗

没,可能是 CLA 服务抽了,我先合并吧,非常感谢,cc @zhenjunMa

@fengjiachun fengjiachun merged commit ffe1abf into sofastack:master Jan 3, 2024
6 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When deploying a PD single node, there is a probability that onLeaderStart cannot be called.
2 participants