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

Removing plugin does not fail when plugin dir is read only #6735

Closed
wants to merge 1 commit into from

Conversation

dadoonet
Copy link
Member

@dadoonet dadoonet commented Jul 4, 2014

If you try to remove a plugin in read only dir, you get a successful result:

$ bin/plugin --remove marvel
-> Removing marvel
Removed marvel

But actually the plugin has not been removed.

When installing, if fails properly:

$ bin/plugin -i elasticsearch/marvel/latest
-> Installing elasticsearch/marvel/latest...

Failed to install elasticsearch/marvel/latest, reason: plugin directory /usr/local/elasticsearch/plugins is read only

This change throw an exception when we don't succeed removing the plugin.

Closes #6546.

If you try to remove a plugin in read only dir, you get a successful result:

```
$ bin/plugin --remove marvel
-> Removing marvel
Removed marvel
```

But actually the plugin has not been removed.

When installing, if fails properly:

```
$ bin/plugin -i elasticsearch/marvel/latest
-> Installing elasticsearch/marvel/latest...

Failed to install elasticsearch/marvel/latest, reason: plugin directory /usr/local/elasticsearch/plugins is read only
```

This change throw an exception when we don't succeed removing the plugin.

Closes elastic#6546.
@dadoonet dadoonet added the review label Jul 4, 2014
@dadoonet dadoonet self-assigned this Jul 4, 2014
@jpountz
Copy link
Contributor

jpountz commented Jul 4, 2014

LGTM

1 similar comment
@s1monw
Copy link
Contributor

s1monw commented Jul 8, 2014

LGTM

@s1monw s1monw removed the review label Jul 8, 2014
@dadoonet dadoonet closed this Jul 9, 2014
@dadoonet dadoonet deleted the issue/6546 branch July 9, 2014 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugins: Removing plugin does not fail when plugin dir is read only
4 participants