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

Handling of Mongo being down #17

Open
cfjedimaster opened this issue Aug 11, 2011 · 1 comment
Open

Handling of Mongo being down #17

cfjedimaster opened this issue Aug 11, 2011 · 1 comment

Comments

@cfjedimaster
Copy link

If you run code and Mongo itself is down, the error isn't incredibly clear:

The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
Null Pointers are another name for undefined values.

The error occurred in C:\Users\Raymond\Dropbox\websites\testingzone\deepcomment\cfmongodb\core\DBCollection.cfc: line 365
363 : }
364 : var dbo = toMongo(doc);
365 : var writeResult = collection.remove( dbo );
366 : return writeResult;
367 : }

It seems like Mongo could handle this a bit better?

@marcesher
Copy link
Owner

Ray, do you have a test that can reproduce this which I can run? When I attempt to reproduce, if Mongo is down, I get the typical "Can't say something" or "Can't call something" errors, with this message: "couldn't connect to [Marc-PC/192.168.1.104:27017] bc:java.net.ConnectException: Connection refused: connect "

which is pretty clear to me

@marcesher marcesher reopened this Aug 20, 2011
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

No branches or pull requests

2 participants