You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By the way, MetaManager should do some refactor since fillMetaInfo caught the TException then the caller like getSpace and so on know nothing about it. And the MetaClient stays in a strange state(transport has closed but the user know nothing about it) when getClient fail:
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: