-
Notifications
You must be signed in to change notification settings - Fork 121
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
"Cannot open null host" log by com.vesoft.nebula.client.meta.MetaManager #409
Labels
type/enhancement
Type: make the code neat or more efficient
Comments
By the way, nebula-java/client/src/main/java/com/vesoft/nebula/client/meta/MetaClient.java Lines 164 to 172 in d487480
|
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should be check if the leader address is empty when
E_LEADER_CHANGED
:nebula-java/client/src/main/java/com/vesoft/nebula/client/meta/MetaClient.java
Lines 195 to 197 in d487480
Also see:
nebula-java/client/src/main/java/com/vesoft/nebula/client/meta/MetaClient.java
Lines 164 to 172 in d487480
nebula-java/client/src/main/java/com/vesoft/nebula/client/meta/MetaClient.java
Lines 130 to 162 in d487480
It may be fine to process like C++ meta client: MetaClient.cpp#L701-L702, MetaClient.h#L689-L696, since metad should response empty leader address when it's role is
CANDIDATE
:RaftPart.cpp#L960-L972.Response call stack: handleErrorCode->handleLeaderChanged->partLeader->getStoreAddr->getStoreAddrFromRaftAddr.
The text was updated successfully, but these errors were encountered: