Skip to content

fix MetaClient bug#144

Open
zhixiongning wants to merge 2 commits intovesoft-inc:masterfrom
zhixiongning:master
Open

fix MetaClient bug#144
zhixiongning wants to merge 2 commits intovesoft-inc:masterfrom
zhixiongning:master

Conversation

@zhixiongning
Copy link
Copy Markdown

@zhixiongning zhixiongning commented Mar 9, 2026

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number: 140

Description:

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.

How do you solve it?

When the selected metad is not the leader, the leader information will be obtained from the response message and the request will be retried. Meanwhile, the local leader will be updated for the next request.

Special notes for your reviewer, ex. impact of this fix, design document, etc:

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 9, 2026

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

2 participants