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

if the metad connection fails, the leader of ListSpacesResp should be used for retry #140

Open
zhixiongning opened this issue Dec 13, 2024 · 0 comments

Comments

@zhixiongning
Copy link

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:

  1. Step 1
  2. Step 2
  3. Step 3

Expected behavior

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant