nebula-cpp icon indicating copy to clipboard operation
nebula-cpp copied to clipboard

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

Open zhixiongning opened this issue 1 year ago • 0 comments

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

zhixiongning avatar Dec 13 '24 01:12 zhixiongning