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

Only emit admin API incompatibility warning if cluster is running #1659

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

tillrohrmann
Copy link
Contributor

This commit changes when the CLI prints an admin API incompatibility
warning. The warning is now printed if the admin API version couldn't
be validated and if the cluster is reachable (via checking the /health
endpoint). If the cluster is not reachable, then the CLI terminates with
an error message stating that the Restate server is not reachable.

This fixes #1646.

Copy link
Contributor

@AhmedSoliman AhmedSoliman left a comment

Choose a reason for hiding this comment

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

Thanks for improving the CLI experience 🚢

@@ -68,6 +68,7 @@ macro_rules! define_primitive_trait {
};
}

#[cfg(feature = "table_docs")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice. I guess that fixes a warning that surfaced after upgrading the toolchain.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, exactly.

This commit changes when the CLI prints an admin API incompatibility
warning. The warning is now printed if the admin API version couldn't
be validated and if the cluster is reachable (via checking the /health
endpoint). If the cluster is not reachable, then the CLI terminates with
an error message stating that the Restate server is not reachable.

This fixes restatedev#1646.
@tillrohrmann tillrohrmann merged commit 38b03d5 into restatedev:main Jun 25, 2024
3 checks passed
@tillrohrmann tillrohrmann deleted the issues/1646 branch June 25, 2024 11:16
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.

Avoid printing version compatibility warning if the server is not running
2 participants