-
Notifications
You must be signed in to change notification settings - Fork 1.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
SIGTERM doesn’t gracefully shutdown in 2.12+ #13851
Comments
This is also true when using test containers to populate a container and shut it down. It leaves the lock files behind. |
#1304 is related |
@ben-gineer Is there anything interesting in the log files from the service when a SIGTERM signal is received? Is the process actually exiting and leaving the lock files behind, or does the process stay running and something has to kill it? |
Here's a test case:
Perhaps there is a better way to check that the OpenSearch instance is up using the health endpoint? However, if I kill the process with -15 signal, Lucene leaves behind those lock files still without cleaning up properly. |
Resolved in opensearch-project/opensearch-build#4694. |
Describe the bug
Since updating to 2.12, sending the opensearch process a SIGTERM does not gracefully shut the service down, leaving node.lock and write.lock files in the data folder. This causes issues with our docker builds. See:
https://forum.opensearch.org/t/cannot-create-pre-baked-docker-image-of-opensearch-2-12/19574
Is there a way to cleanly shutdown without manual cleanup of these lock files?
Related component
Cluster Manager
To Reproduce
Expected behavior
SIGTERM should clean up gracefully.
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: