-
Notifications
You must be signed in to change notification settings - Fork 322
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
Fail to start nameserver when regester zk leader node after calling init function #3867
Comments
Error logs: /workspaces/OpenMLDB/src/nameserver/new_server_env_test.cc:180: Failure I20240412 03:13:01.369341 39639 server.cpp:1194] Server[openmldb::tablet::TabletImpl] is going to quit [ FAILED ] NewServerEnvTest.ShowRealEndpoint (9171 ms) [----------] Global test environment tear-down 1 FAILED TEST |
root cause is Lines 210 to 239 in 40eaf50
It'll get nodes(leader and tablets) in line 212-230, if leader node is exists in zk, sname_vec will have I think the good way is zk data use |
Bug Description
Now we may fail to start nameserver after adding the sleep method.
The issue may between
Init()
andRegisterName
. The functioninit
is asynchronous which is used to register zk watch. The functionregister
is used to write endpoint in zk but it requires to be exeucted beforeinit
finished.This is the wired design and occurs failure of starting nameserver.
Expected Behavior
Success to start nameserver whenever it sleeps.
Steps To Reproduce
new_server_env_test
The text was updated successfully, but these errors were encountered: