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

skip heartbeat when role in meta client is not set #3855

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

critical27
Copy link
Contributor

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Close #3854

Description:

The role in meta client is UNKNOWN by default, and many tools use the default MetaClientOptions, which makes the host info is Host("", 0), and the info will be write to meta if we send heartbeat.

How do you solve it?

Just skip heartbeat when role is unknown

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

Checklist:

Tests:

  • Unit test(positive and negative cases)
  • Function test
  • Performance test
  • N/A

Affects:

  • Documentation affected (Please add the label if documentation needs to be modified.)
  • Incompatibility (If it breaks the compatibility, please describe it and add the label.)
  • If it's needed to cherry-pick (If cherry-pick to some branches is required, please label the destination version(s).)
  • Performance impacted: Consumes more CPU/Memory

Release notes:

Please confirm whether to be reflected in release notes and how to describe:

ex. Fixed the bug .....

@critical27 critical27 added cherry-pick-v3.0 PR: need cherry-pick to this version priority/hi-pri Priority: high ready-for-testing PR: ready for the CI test labels Feb 7, 2022
Copy link
Contributor

@darionyaphet darionyaphet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Sophie-Xie Sophie-Xie merged commit 751de90 into vesoft-inc:master Feb 8, 2022
critical27 added a commit that referenced this pull request Feb 9, 2022
* skip heartbeat when role in meta client is not set (#3855)

* Try to improve the performance of appendVertices (#3857)

* Try to improve the performance of appendVertices

* fix a unstable tck

* keep consistent with 2.6.x (#3859)

confirm with sophie.xie

Co-authored-by: Doodle <[email protected]>
Co-authored-by: jie.wang <[email protected]>
Co-authored-by: Harris.Chu <[email protected]>
liwenhui-soul pushed a commit to liwenhui-soul/nebula that referenced this pull request Feb 15, 2022
@critical27 critical27 deleted the hot branch February 15, 2022 07:50
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
* skip heartbeat when role in meta client is not set (vesoft-inc#3855)

* fix failed ut

Co-authored-by: Doodle <[email protected]>

Manual merge due to unknown dismiss phenomenon,confirm with sophie.xie
@critical27 critical27 mentioned this pull request Apr 19, 2022
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-v3.0 PR: need cherry-pick to this version priority/hi-pri Priority: high ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot backup nebula after upgrader from v2
4 participants