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

/etc/init.d/elasticsearch stop sleeps for 86400 seconds #15520

Closed
paulv-quest opened this issue Dec 17, 2015 · 2 comments
Closed

/etc/init.d/elasticsearch stop sleeps for 86400 seconds #15520

paulv-quest opened this issue Dec 17, 2015 · 2 comments

Comments

@paulv-quest
Copy link

elasticsearch wasn't restarting correctly. I investigated and found:

# ps auxwwwf
[...]
root      3034  0.0  0.0 106364  1652 pts/4    S+   11:43   0:00      \_ /bin/sh /etc/init.d/elasticsearch stop
root      3049  0.0  0.0 100908   568 pts/4    S+   11:43   0:00          \_ sleep 86400

Line 129 of /etc/init.d/elasticsearch appears to be the culprit.

This machine is running RHEL 6.4.

@jasontedor
Copy link
Member

This is intentional so that shards can be closed; see #10680 and #11248 for details and #12298 is the pull request that ultimately closed that issue. If Elasticsearch is not shutting down, there is something else going on, but the sleep is not the issue. That's just waiting before issuing sending a SIGKILL in case Elasticsearch really is dead but we don't want to signal prematurely.

@satoshi-kimura
Copy link

I think so elasticsearch have to confirm os version.
Because elasticsearch can not restart on RHEL6.x , it sleep 86400 in stop.
RHEL7.x is no probrem.

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

No branches or pull requests

3 participants