-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Elasticsearch-plugin fills tmp with empty dirs #34445
Comments
Pinging @elastic/es-core-infra |
I can reproduce this under Linux (not under osx though) using 6.4.2. This should indeed be cleaned up. |
This happens because |
We can look into improving this. However, what is the concrete user-facing problem here? Knowing this will help us prioritize the effort. Modern systemd-based systems will clean /tmp periodically, and it will clean itself on reboot. |
@jasontedor we have a very heterogeneous cluster topology and use As you can guess, even if the Os might rotate /tmp and it should be mounted as tmpfs, a new dir every execution and frequent executions have caused us inode starvation issues. I can imagine your thoughts for not prioritizing this, but in that case, what would be a good alternative for us? |
@PereBal Thanks for clarifying. As a workaround, for now you can set |
The elasticsearch-cli helper script does not use the tempdir created by elasticsearch-env, yet the env script still creates it. This can lead to lots of temp directories being created when running cli scripts in an automated fashion. This commit passes a fake tmpdir to the env script to avoid creation. closes elastic#34445
The elasticsearch-cli helper script does not use the tempdir created by elasticsearch-env, yet the env script still creates it. This can lead to lots of temp directories being created when running cli scripts in an automated fashion. This commit passes a fake tmpdir to the env script to avoid creation. closes #34445
The elasticsearch-cli helper script does not use the tempdir created by elasticsearch-env, yet the env script still creates it. This can lead to lots of temp directories being created when running cli scripts in an automated fashion. This commit passes a fake tmpdir to the env script to avoid creation. closes #34445
The elasticsearch-cli helper script does not use the tempdir created by elasticsearch-env, yet the env script still creates it. This can lead to lots of temp directories being created when running cli scripts in an automated fashion. This commit passes a fake tmpdir to the env script to avoid creation. closes elastic#34445
Elasticsearch version (
bin/elasticsearch --version
): 5.6.2 to 6.4.1 (at least)Plugins installed: []
JVM version (
java -version
): 1.8OS version (
uname -a
if on a Unix-like system): CentOs7Description of the problem including expected versus actual behavior: Running
elasticsearch-plugin list
creates a directory under/tmp
every run. If the directory is necessary for the run I expect the tool to either reuse it or clean it up after usage.Steps to reproduce:
Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.
/tmp
matchingelasticsearch.
:ls /tmp | grep 'elasticsearch\.'
bin/elasticsearch-plugin list
/tmp
matchingelasticsearch.
again, a new dir should be there every executionProvide logs (if relevant):
The text was updated successfully, but these errors were encountered: