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

Plugin installation failed when bin/ and plugins/ directories are on different filessystems #8999

Closed
tlrx opened this issue Dec 18, 2014 · 0 comments · Fixed by #9011
Closed
Assignees
Labels

Comments

@tlrx
Copy link
Member

tlrx commented Dec 18, 2014

In version 1.4.2, we can't install a plugin when the bin/ and plugin/ directories are located on different filesystems.

The exception is:

Failed to install test, reason: Could not move [/tmp/elasticsearch/plugins/test/bin] to [/var/elasticsearch/elasticsearch-1.4.2/bin/test]

The PluginManager uses a renameTo() method but the renameTo operation might not be able to move a file from one filesystem to another.

Related to 921e028

@tlrx tlrx added the >bug label Dec 18, 2014
@tlrx tlrx self-assigned this Dec 18, 2014
tlrx added a commit to tlrx/elasticsearch that referenced this issue Jan 6, 2015
…n different filesystems

Plugin installation failed when bin/, conf/ and plugins/ directories are on different file systems. The method File.move() can't be used to move a non-empty directory between different filesystems.

I didn't find a simple way to unittest that, even with in-memory filesystems like jimfs or the Lucene test framework.

Closes elastic#8999
@tlrx tlrx closed this as completed in #9011 Jan 6, 2015
tlrx added a commit that referenced this issue Jan 6, 2015
…n different filesystems

Plugin installation failed when bin/, conf/ and plugins/ directories are on different file systems. The method File.move() can't be used to move a non-empty directory between different filesystems.

I didn't find a simple way to unittest that, even with in-memory filesystems like jimfs or the Lucene test framework.

Closes #8999

(cherry picked from commit a5127d2)
tlrx added a commit that referenced this issue Jan 6, 2015
…n different filesystems

Plugin installation failed when bin/, conf/ and plugins/ directories are on different file systems. The method File.move() can't be used to move a non-empty directory between different filesystems.

I didn't find a simple way to unittest that, even with in-memory filesystems like jimfs or the Lucene test framework.

Closes #8999

(cherry picked from commit a5127d2)
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
…n different filesystems

Plugin installation failed when bin/, conf/ and plugins/ directories are on different file systems. The method File.move() can't be used to move a non-empty directory between different filesystems.

I didn't find a simple way to unittest that, even with in-memory filesystems like jimfs or the Lucene test framework.

Closes elastic#8999

(cherry picked from commit a5127d2)
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 a pull request may close this issue.

1 participant