mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
ready_via_node waits up to 45s for the temporary source mongod to accept connections, to allow a large MongoDB 6/7 database time to replay its journal (#6454). Add a liveness check: if the mongod process (SRC_PIDFILE) has already exited - e.g. mongod 7 cannot open old MongoDB 3.x data - stop waiting immediately and drop to the MongoDB 3.2 reader, instead of pinging a dead process for the full timeout. Matters across many unattended 6.09 -> 9.x upgrades. (With --fork, start_mongod usually already returns non-zero when mongod cannot open the data; this also covers a mongod that started then died mid-probe.) Thanks to xet7.