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

mcs/metastorage: remove the register restful API #8583

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

HuSharp
Copy link
Member

@HuSharp HuSharp commented Aug 30, 2024

What problem does this PR solve?

After the #8317 merge, we will now have an error log error log

[2024/08/29 11:52:53.745 +08:00] [ERROR] [registry.go:95] ["register restful API service failed"] [prefix=pd-0] [service-name=MetaStorage] [error="[PD:server:ErrAPIInformationInvalid]invalid api information, group  version "]

Since the meta storage doesn't provide restful API right now, we can remove the register.

Issue Number: Ref #5836

What is changed and how does it work?

Check List

Tests

  • Manual test (add detailed scripts or steps below)

Release note

None.

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the dco. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 30, 2024
Signed-off-by: husharp <ihusharp@gmail.com>
@HuSharp HuSharp force-pushed the remove_metastorage_register branch from 0b4d948 to 6f8b771 Compare August 30, 2024 07:02
Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.60%. Comparing base (6998fb5) to head (6f8b771).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8583   +/-   ##
=======================================
  Coverage   77.59%   77.60%           
=======================================
  Files         474      474           
  Lines       61883    61884    +1     
=======================================
+ Hits        48019    48024    +5     
+ Misses      10334    10331    -3     
+ Partials     3530     3529    -1     
Flag Coverage Δ
unittests 77.60% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@HuSharp
Copy link
Member Author

HuSharp commented Aug 30, 2024

cc @okJiang

@HuSharp HuSharp requested a review from rleungx August 30, 2024 07:11
@@ -266,7 +266,6 @@ func (d *Driver) RegionsHeartbeat(ctx context.Context) {
healthyNodes[n.Store.GetId()] = true
}
}
report := 0
Copy link
Member Author

Choose a reason for hiding this comment

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

unused variable

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Aug 30, 2024
@ti-chi-bot ti-chi-bot bot added the lgtm label Sep 2, 2024
Copy link
Contributor

ti-chi-bot bot commented Sep 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lhy1024, rleungx

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 2, 2024
Copy link
Contributor

ti-chi-bot bot commented Sep 2, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-08-30 10:17:14.984952636 +0000 UTC m=+7559.503005553: ☑️ agreed by rleungx.
  • 2024-09-02 05:42:36.975748313 +0000 UTC m=+250281.493801233: ☑️ agreed by lhy1024.

@ti-chi-bot ti-chi-bot bot merged commit 571c59b into tikv:master Sep 2, 2024
25 checks passed
@HuSharp HuSharp deleted the remove_metastorage_register branch September 2, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants