PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 23rd of June, 2013

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[05:18:03] <invictus01> Hello, I have a primary on data center 1 and 2 replicas in other 2 data centers. Sometimes the primary server has 100% packet loss for a fraction of a second, and the other 2 repliacs demote it as Primary. While the data center folks are trying to see whats causing the packet loss, would adding an arbiter in datacenter 1 solve the issue?
[05:50:08] <SparkySparkyBoom> /join/c
[07:29:56] <kali> Incip:
[07:29:57] <kali> oups
[07:30:03] <kali> invictus has left.
[09:46:18] <bartzy> Hey
[09:46:36] <bartzy> why the "ok" flag in insert/save/update etc is a double, in the PHP driver? :)
[09:46:41] <bartzy> and not an int
[10:05:22] <Derick> bartzy: what do you mean, that shouldn't be exposed?
[12:52:59] <Tok-A-Mak> hello. does anyone know if it is possible to run a mongodb instance without having an actual installation on the system where it runs.. for example by bundling a jar with the app that creates and uses the instance in a temp directory?
[12:57:39] <Derick> hmm
[12:57:47] <Derick> you mean like an embedded database server?
[13:01:54] <Tok-A-Mak> yea, i guess so
[13:05:08] <Derick> hmm, I don't think that is something you can do right now
[13:05:36] <Tok-A-Mak> OK i will wait ;) thanks
[13:33:18] <daslicht> I finally manged to get my mongodb running
[13:33:28] <daslicht> yesterday i had issues in running mongo
[13:33:39] <daslicht> I just had to stop the server
[13:33:47] <daslicht> start it AND restart it
[13:33:50] <daslicht> whyever
[13:33:53] <daslicht> now its working
[16:44:15] <millun> morning
[16:46:17] <Derick> hi
[16:47:58] <millun> i'm using spring-data-mongodb and ran into a weird thing. when data was attempted to be serialized, i got exception 'java.lang.IllegalArgumentException: can't serialize class XYZ' where XYZ is a @DBRef
[16:48:44] <millun> any hints?
[16:50:29] <millun> i have the class serializable so that shouldn't be a problem
[16:50:30] <bartzy> Derick: Sorry for the (huge) delay - The 'ok' flag is not int, it's double
[16:50:52] <bartzy> Derick: And I don't understand why ? (Got to this problem when I did $result['ok'] !== 1 which is always correct since it's double).
[16:53:11] <Derick> bartzy: but normal queries don't return $result['ok'] at all
[16:53:30] <bartzy> Derick: insert/save/update - these kind of queries I mean
[16:54:34] <Derick> bartzy: example code please
[16:55:55] <bartzy> Derick: http://php.net/manual/en/mongocollection.insert.php
[16:56:18] <bartzy> Derick: insert with write concern to 1, returns an array with the values in the "Return Values" part of this doc
[16:56:58] <bartzy> When I test if something like insert/save/update failed, I check for MongoCursorException, AND for $result['ok'] == 1
[16:57:22] <Derick> right
[16:57:30] <Derick> ok
[16:57:44] <Derick> and how does it matter whether it is a double or int?
[16:57:47] <Derick> it's still 1
[16:59:31] <Derick> as long as you use != 1 or == 0, or == 1 you should be good.
[17:00:34] <Derick> (it's a boolean because that's what MongoDB returns btw)
[17:00:46] <Derick> why *that* is, I don' tknow
[17:12:47] <bartzy> Derick: Yeah, just asking :D
[17:12:57] <bartzy> Derick: And should I even check for 'ok' == 1 ?
[17:13:07] <Derick> not needed
[17:16:44] <Derick> hmm
[17:18:14] <millun> is java driver supposed to convert @DBRef (a foreign key) to JSON as well as the main object?
[17:19:26] <Derick> although I am trying to find this in the code bartzy
[19:01:13] <bartzy> Derick: Why is it not needed ?
[19:15:01] <Derick> bartzy: I thought you'd get an exception anyway?
[19:17:57] <bartzy> Derick: Yeah so why 'ok' = 1 is returning anyway ?
[19:19:09] <Derick> we return the full error document, as sometimes it might have other useful info