Process is not killing itself on fatal error (docker)
See original GitHub issueI am using docker (via OpenShift) with Mongo Connector and elastic2-doc-manager in their latest versions.
Everything is ok until I am getting for any reason ReadTimeoutError
because one of the requests to the Elastic took more than 10sec.
In this case, the mongo-connector should send a SIGNAL to kill itself, It will help the Docker restart automatically (recover) and try to continue from the last oplog entry.
In my case, I noticed that the connector was “stuck” in this error for about 20 hours, And when I restarted it manually the connector failed to trace in time the changes happened in the MongoDB (there are about 20,000 updated per hour).
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
tried to kill container, but did not receive an exit event - Stack ...
Restart the Host Machine. Enter inside the container docker exec -it ContainerName /bin/bash and then Kill the container kill 1.
Read more >Supervisor not listening - Container killing itself on startup
You need to either to remove the mount path and add the missing environment variables. ... To create these files (I think they...
Read more >Docker run reference
Docker run reference . Docker runs processes in isolated containers. A container is a process which runs on a host. The host...
Read more >Container permission denied: How to diagnose this error
Learn what is causing a container permissions error and how to work around the issue without resorting to the --privileged flag.
Read more >How to Fix 'Terminated With Exit Code 1' Error - Komodor
1. Delete And Recreate the Container · In Docker, use the docker stop command to stop the container, then use docker rm to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Mapping the error to
OperationFailed
would cause mongo-connector to ignore the error and not exit. The real issue is that the elastic doc manager does not handle timeouts on its Elasticsearch client. That error should currently be uncaught and mongo-connector should exit. It should not be “stuck”. Can you post the ReadTimeoutError error message or stacktrace that you’re seeing?Have there been any updates on this? I’m still seeing this issue!