This check should be handled by the juju worker internally, with a retry + back off setup, so the hook doesnt fail in this case, but instead tries while mongo restarts. otherwise every charm would have to have a retry written around these commands.
This check should be handled by the juju worker internally, with a retry + back off setup, so the hook doesnt fail in this case, but instead tries while mongo restarts. otherwise every charm would have to have a retry written around these commands.