-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Moving NodeInfo internal version storage to String #100746
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
Moving NodeInfo internal version storage to String #100746
Conversation
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Version parsing compatible with Build.version() - snapshot builds and non-semantic versions. Provisional solution before Feature API
This change breaks many tests that rely on NodeInfo version string to be parseable to a Version (via the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, but one comment on swallowing exceptions.
server/src/main/java/org/elasticsearch/action/admin/cluster/node/info/NodeInfo.java
Outdated
Show resolved
Hide resolved
99031ff
to
c096ce9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@elasticmachine rerun elasticsearch-ci/part-2 |
@elasticmachine rerun elasticsearch-ci/check-serverless-submodule |
NodeInfo version as string. Moving from Version to Build.version(), which means also non-semantic versions. Particular care was needed for ESRestTestCase Version parsing, to make it work in a serverless environment, removing Version whenever possible and adding proper fallbacks when needed.
Follows #100673 and will be updated with that before merging