You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
incubator/mongodb-replicaset bootstrap init-container has a possible infinite loop #522
In our case, I was running the chart on minikube. I'm not sure why, but mongod dumped core (the core file vanished; not sure about that either), causing the loop to be entered. My best guess is that the amount of storage requested by default (10GB) was too much in some way; in any event, reducing that storage request to 1GB allowed me to get around the issue.
My minikube environment is on a Mac running VirtualBox (i.e. not via xhyve) if that matters.
I don't know enough about what seems like the complicated interplay between various processes in this chart to know exactly what to change in a pull request, but I wanted to raise the issue.
Thanks for raising the issue @ljnelson. I think this failure mode is inevitable but should be handled better as there are a host of reasons why mongod may not start. One way to get around it might be monitoring the mongod process, so that we know when it exits with an error and can fail the container.
Do you have thoughts on other ways this could be fixed?
Well, my naïve eyes just say: you've got a loop that never terminates. Set it to terminate after 100,000 iterations or a timeout or something so that at least you get logs. That would be the dead simple fix. Obviously monitoring would be better.
Activity
foxish commentedon Feb 23, 2017
Thanks for raising the issue @ljnelson. I think this failure mode is inevitable but should be handled better as there are a host of reasons why mongod may not start. One way to get around it might be monitoring the mongod process, so that we know when it exits with an error and can fail the container.
Do you have thoughts on other ways this could be fixed?
ljnelson commentedon Feb 24, 2017
Well, my naïve eyes just say: you've got a loop that never terminates. Set it to terminate after 100,000 iterations or a timeout or something so that at least you get logs. That would be the dead simple fix. Obviously monitoring would be better.
seanknox commentedon May 25, 2017
Closing due to inactivity, feel free to re-open if this is still an issue.
cert-manager: fast-forward to upstream 36289cf0
cert-manager: fast-forward to upstream 36289cf0 (#5919)
cert-manager: fast-forward to upstream 36289cf0 (helm#5919)