forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return String from PluginDescriptor#getElasticsearchVersion (elastic#…
…100735) We want plugin descriptors to be able to return opaque strings from getElasticsearchVersion. The one problem here is that the stable plugin API assumes semantic versioning for determining compatibility: a plugin from an earlier release of the same major version can be loaded, but not one from a future release. So we check to see if the current build version can be parsed as a semantic version, and, if so, we apply this logic. For non-stable plugins on a semantically-versioned build, we check that the plugin's version matches the build version. If the build version is not semantic, we assume that the plugins come from the current build, since no one should be installing or modifying plugins on serverless.. * getElasticsearchVersion returns string * Fix utils for snapshot versions * Remove Version.CURRENT from error messages * Only check plugin version compatibility for semantically versioned builds
- Loading branch information
1 parent
c7135b6
commit e44eea3
Showing
4 changed files
with
111 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters