Skip to content

Replace the deprecated /cluster-health endpoint with gRPC call#420

Draft
muhamadazmy wants to merge 1 commit into
mainfrom
pr420
Draft

Replace the deprecated /cluster-health endpoint with gRPC call#420
muhamadazmy wants to merge 1 commit into
mainfrom
pr420

Conversation

@muhamadazmy
Copy link
Copy Markdown
Contributor

Replace the deprecated /cluster-health endpoint with gRPC call

Summary:
This drops the use of the deprecated /cluster-health endpoint
and use the Restate metadata server gRPC service instead

Summary:
This drops the use of the deprecated /cluster-health endpoint
and use the Restate metadata server gRPC service instead
@github-actions
Copy link
Copy Markdown

Test Results

 5 files  ±0   5 suites  ±0   2m 26s ⏱️ - 2m 19s
43 tests ±0  40 ✅ +1  0 💤 ±0  3 ❌ ±0 
64 runs  ±0  61 ✅ +1  0 💤 ±0  3 ❌ ±0 

For more details on these failures, see this check.

Results for commit 1b6348d. ± Comparison against base commit b8c685b.

Comment thread infra/build.gradle.kts
Comment on lines +27 to +28
layout.buildDirectory.dir("generated/source/proto/main/java"),
layout.buildDirectory.dir("generated/source/proto/main/grpc"))
Copy link
Copy Markdown
Collaborator

@slinkydeveloper slinkydeveloper May 22, 2026

Choose a reason for hiding this comment

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

i dont think you need this, protobuf gradle plugin should do this ootb

Comment thread infra/build.gradle.kts
dependsOn(openApiGenerate)
dependsOn(generateJsonSchema2Pojo)
dependsOn(withType<GenerateTask>())
dependsOn(withType<com.google.protobuf.gradle.GenerateProtoTask>())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i also dont thiink you need this

client.clusterHealth().metadataClusterHealth?.members?.size == numberRestateNodes
} catch (e: ApiException) {
val response =
MetadataServerSvcGrpc.newBlockingStub(channel).status(Empty.getDefaultInstance())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🤮

e)
throw IllegalStateException("Error when checking metadata server status: ${e.status}", e)
} finally {
channel.shutdownNow()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🤮

Copy link
Copy Markdown
Collaborator

@slinkydeveloper slinkydeveloper left a comment

Choose a reason for hiding this comment

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

if it works lgtm, i'll do a pass later at the gradle config and co. no need to address that stuff now

@muhamadazmy muhamadazmy marked this pull request as draft May 22, 2026 08:12
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