Skip to content

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

Description

@zhixiongning

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions