Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: prevent monitor exception spin loop when MongoDB unreachable. #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

john-morales
Copy link
Collaborator

Hi Deftlabs!

Currently with the sleep occurs after the MongoDB calls, the background threads will sit in a verbose exception loop while the MongoDB is down. This change ensures the sleep occurs on exception, but still eagerly attempts the cleanup at startup.

Thanks!
@john-morales

@john-morales
Copy link
Collaborator Author

Ha, the travis integration on PRs is funny. Looks like maybe the oraclejdk7 and openjdk7 builds don't have MongoDB running - it was OK for openjdk6!

@nzrgit
Copy link
Collaborator

nzrgit commented Jan 24, 2014

Hey... thx for the patch! I will try to get it merged/released this weekend.

LOG.log(Level.SEVERE, t.getMessage(), t);
}
} while (!_shutdown.await(awaitMillis(), TimeUnit.MILLISECONDS));
} catch (InterruptedException ignored) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Trivial] Missing final

@mbenoit99
Copy link

One tiny fix. Otherwise... :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants