Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove unused grpc health check methods#6113

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
owen-d merged 1 commit intomainfromkavirajk/remove-unused-health-checkendpoint
May 6, 2022

Conversation

kavirajk
Copy link
Contributor

@kavirajkkavirajk commentedMay 6, 2022
edited
Loading

What this PR does / why we need it:
We have genericgrpc_healthcheck endpoint that get registered for all the components
during initialization stage.
https://github.com/grafana/loki/blob/main/pkg/loki/loki.go#L364

Looks like these old health checks that are part of actual component's struct itself came from legacy.

Signed-off-by: Kavirajkavirajkanagaraj@gmail.com

NOTE: This should beno op. No build or test failure asthere are no consumer for these methods

Which issue(s) this PR fixes:
Fixes # NA

Special notes for your reviewer:
We figured this out while investigating this ingester/querier grpc issue#6023

Checklist

  • Documentation added
  • Tests updated
  • Is this an important fix or new feature? Add an entry in theCHANGELOG.md.
  • Changes that require user attention or interaction to upgrade are documented indocs/sources/upgrading/_index.md

We have generic `grpc_healthcheck` endpoint that get registered for all the componentsduring initialization stage.Looks like these health checks that are part of actual component's struct itself came from legacy.Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
@kavirajkkavirajk requested a review froma team as acode ownerMay 6, 2022 12:10
@grafanabot
Copy link
Contributor

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester0.1%+        distributor1%+            querier0%+ querier/queryrange0%+               iter0%+            storage0%+           chunkenc0%+              logql0%+               loki0%

@kavirajkkavirajk changed the titleRemove unused grpc health check endpointsRemove unused grpc health check methodsMay 6, 2022
@kavirajkkavirajk requested a review fromchaudumMay 6, 2022 12:34
// Check implements grpc_health_v1.HealthCheck.
func (i*Ingester)Check(ctx context.Context,req*grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse,error) {
status:=grpc_health_v1.HealthCheckResponse_SERVING
if (i.State()!=services.Running)|| (i.lifecycler.GetState()!=ring.ACTIVE) {
Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit worried that we don't seem to be checking the lifecycler state in our blanket version, but it doesn't look like these are used either.

@owen-dowen-d merged commit24f8b19 intomainMay 6, 2022
@owen-dowen-d deleted the kavirajk/remove-unused-health-checkendpoint branchMay 6, 2022 18:14
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@chaudumchaudumchaudum approved these changes

@owen-dowen-dowen-d approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@kavirajk@grafanabot@chaudum@owen-d

[8]ページ先頭

©2009-2025 Movatter.jp