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

[BUG] Container SIGTERM does nothing on Docker Hub images #14577

Closed
liamwhite opened this issue Jun 27, 2024 · 2 comments
Closed

[BUG] Container SIGTERM does nothing on Docker Hub images #14577

liamwhite opened this issue Jun 27, 2024 · 2 comments
Labels
bug Something isn't working Cluster Manager

Comments

@liamwhite
Copy link

Describe the bug

Sending the Docker container a SIGTERM fails to stop OpenSearch. This makes shutdown from compose extraordinarily slow as it now waits for the timeout to send a kill signal to the search server.

#13851 related, but I reproduced this issue on 2.11 as well

Related component

Cluster Manager

To Reproduce

$ docker run -d --ulimit nofile=65536:65536 --rm -e 'discovery.type=single-node' -e 'OPENSEARCH_INITIAL_ADMIN_PASSWORD=Hunter2!IsInsecure' opensearchproject/opensearch:2.14.0
69e99a4309fe9f1cbd7a8591c5b82361a5f234ae5dd18adb8e778e50e33f1d5f
$ sleep 5
$ docker kill --signal=SIGTERM 69e99a4309fe9f1cbd7a8591c5b82361a5f234ae5dd18adb8e778e50e33f1d5f
69e99a4309fe9f1cbd7a8591c5b82361a5f234ae5dd18adb8e778e50e33f1d5f
$ sleep 5
$ docker ps
CONTAINER ID   IMAGE                                 COMMAND                  CREATED          STATUS          PORTS                                    NAMES
69e99a4309fe   opensearchproject/opensearch:2.14.0   "./opensearch-docker…"   25 seconds ago   Up 24 seconds   9200/tcp, 9300/tcp, 9600/tcp, 9650/tcp   serene_chebyshev

Expected behavior

OpenSearch should shut down after receiving a SIGTERM.

Additional Details

No response

@happydude
Copy link

might be a duplicate of #13851

It does seem to work in v1

@liamwhite
Copy link
Author

Was fixed by opensearch-project/opensearch-build#4694 in the 2.15 release.

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Cluster Manager Project Board Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cluster Manager
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants