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

Add nicer error message when a plugin descriptor is missing #15200

Merged
merged 1 commit into from Dec 4, 2015

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Dec 2, 2015

Currently, when a user tries to install an old plugin (pre 2.x) on a 2.x
node, the error message is cryptic (just printing the file path that was
missing, when looking for the descriptor). This improves the message to
be more explicit that the descriptor is missing, and suggests the
problem might be the plugin was built before 2.0.

closes #15197

@rjernst rjernst added :Core/Infra/Plugins Plugin API and infrastructure v5.0.0-alpha1 v2.2.0 labels Dec 2, 2015
@dadoonet
Copy link
Member

dadoonet commented Dec 2, 2015

The change looks good to me and can be merged.
But I'm unsure if it fixes #15197.

@bleskes
Copy link
Contributor

bleskes commented Dec 3, 2015

LGTM. Thanks @rjernst

… is missing

Currently, when a user tries to install an old plugin (pre 2.x) on a 2.x
node, the error message is cryptic (just printing the file path that was
missing, when looking for the descriptor). This improves the message to
be more explicit that the descriptor is missing, and suggests the
problem might be the plugin was built before 2.0.

closes elastic#15197
@rjernst
Copy link
Member Author

rjernst commented Dec 4, 2015

@dadoonet @bleskes I pushed a new commit which is a little better. We already check the plugin descriptor exists when unzipping a new plugin for installation, so what I had before was duplicating this at a lower level. Instead, I now detect this case where we are loading existing plugins and the descriptor is missing.

@dadoonet
Copy link
Member

dadoonet commented Dec 4, 2015

LGTM

rjernst added a commit that referenced this pull request Dec 4, 2015
Add nicer error message when a plugin descriptor is missing
@rjernst rjernst merged commit 06f7d69 into elastic:master Dec 4, 2015
rjernst added a commit that referenced this pull request Dec 4, 2015
Add nicer error message when a plugin descriptor is missing
@rjernst rjernst deleted the old_plugin_error branch December 4, 2015 22:26
@rjernst
Copy link
Member Author

rjernst commented Dec 4, 2015

2.x change: 845bc97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants