Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Exit with failure when an error occured while connecting to mongod. #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrucci
Copy link

@mrucci mrucci commented Sep 14, 2013

This avoids the exception being caught and ignored, letting the process hang in an unusable state.

This is particularly important when starting mongod, the cube collector and evaluator via supervisord. If the process does not exit with failure, supervisord will never restart the collector and evaluator and the connection to mongod will never happen.

And, in general, there is no point in keeping the collector and evaluator running if there is no connection to mongod.

Thanks!

This avoids the exeption being caught and ignored, letting the process
hang in an unusable state.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant