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

[3.4] Backport healthcheck code cleanup #17120

Merged
merged 6 commits into from
Dec 15, 2023

Conversation

siyuanfoundation
Copy link
Contributor

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

The same as #17000.
Cherry-picked necessary changes from #13655 to prepare for the livez/healthz backport.

@siyuanfoundation siyuanfoundation changed the title [3.5] Backport healthcheck code cleanup [3.4] Backport healthcheck code cleanup Dec 14, 2023
@@ -50,7 +50,7 @@ func metricsTest(cx ctlCtx) {
{"/metrics", fmt.Sprintf(`etcd_server_version{server_version="%s"} 1`, version.Version)},
{"/metrics", fmt.Sprintf(`etcd_cluster_version{cluster_version="%s"} 1`, version.Cluster(version.Version))},
{"/metrics", fmt.Sprintf(`grpc_server_handled_total{grpc_code="Canceled",grpc_method="Watch",grpc_service="etcdserverpb.Watch",grpc_type="bidi_stream"} 6`)},
{"/health", `{"health":"true"}`},
{"/health", `{"health":"true","reason":""}`},
Copy link
Member

Choose a reason for hiding this comment

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

Looks like you unintentionally backported a "reason" field. It's not a breaking change but also not a "code cleanup".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed it to json:"-". Would that work?

@siyuanfoundation
Copy link
Contributor Author

CC @serathius @ahrtr

Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

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

Backport lgtm - Thanks @siyuanfoundation

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

lgtm

@ahrtr ahrtr merged commit 963af73 into etcd-io:release-3.4 Dec 15, 2023
12 checks passed
@siyuanfoundation siyuanfoundation deleted the livez-bp-3.4 branch December 15, 2023 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants