Please check the FAQ documentation before raising an issue
Describe the bug (required)
When I use nebula-cpp to scan data, it will be failed sometimes. Three metad servers are deployed in the environment.
I noticed that metad client use metaAddrs_.back() to connect to the server. However, metaAddrs_.back() is not necessarily the leader and errors will occurred sometimes. Thus, The leader of ListSpacesResp should be used for connection retry.
The code in https://github.com/vesoft-inc/nebula/blob/master/src/clients/meta/MetaClient.cpp should be synced to nebula-cpp?
Your Environments (required)
- OS:
uname -a: centos7
- Commit id (e.g.
a3ffc7d8): master
How To Reproduce(required)
Steps to reproduce the behavior:
- Step 1
- Step 2
- Step 3
Expected behavior
Additional context