PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 12th of January, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[06:43:24] <Farid> Hello
[06:45:38] <Farid> I have the following question: When we add new empty shard to an existing shards, is there any possibility then mongo assumes that empty shard is kind of "latest" what database should have and therefore tries to wipe out all data from sharded collection?
[07:58:24] <darius93> do anyone know if theres any mongodb drivers for postfix and dovecot?
[14:31:15] <Graeme> Hi, am I okay to ask for help here?
[14:31:37] <ron> don't ask to ask. just ask.
[14:32:35] <Graeme> I'm struggling to import MongoClient even though the dependencies are there and I can see the external libraries myself
[14:34:55] <Graeme> Any ideas?
[14:44:36] <cheeser> depends on the error you're getting
[14:45:53] <Graeme> All it says is cannoy resolve symbol MongoClient
[14:45:57] <Graeme> cannot*
[14:47:31] <cheeser> java?
[14:48:34] <Graeme> Yeah
[14:51:50] <cheeser> how are you setting up your classpath?
[14:56:50] <Graeme> I hate to sound stupid but I'm quite new to this so how do I add it to my classpath?
[14:57:53] <cheeser> well, when you say you see the external dependencies yourself, what does that mean?
[14:58:14] <cheeser> see if this helps: http://bit.ly/15InVZQ
[14:58:44] <Graeme> Inside intelliJ I can see mongo-java-driver:2.11.2 and everything inside there
[14:58:45] <Graeme> Thanks
[15:23:57] <Graeme> cheeser:Do I need to download the mongo-java-driver jar and put it somewhere locally then or is just specifying it in the POM file dependencies enough?
[15:24:35] <cheeser> if you put it in your pom, maven will download it for you
[15:27:24] <Graeme> Thanks for your help cheeser that's fine then. I just don't understand why I can't get it to import into my class
[15:28:28] <cheeser> well, did you actually add an import line to your source file?
[15:28:53] <cheeser> import com.mongodb.MongoClient;
[15:41:11] <Graeme> yeah sorry cheeser the import is in grey and the word MongoClient is in red. When I hover my mouse over MongoClient it just says cannot resolve symbol
[15:45:08] <Graeme> it also says package com.mongodb does not exist
[16:17:24] <Farid> hi
[16:52:10] <shesek> I accidentally updated a document and removed all its fields... I'm assuming there isn't much that can be done about that, ah?
[17:07:50] <darius93> do anyone know if theres any mongodb drivers for postfix and dovecot?
[17:11:58] <Graeme> Does anyone know why when I let the POM file update dependencies and download them then I can't access the classes in mongo-java-driver but when I add the JAR externally I can access all the classes?
[21:06:48] <jpcaissy> Hi, I'm trying to do a simple query that is filtering based on an a field inn the document. Is there a way to do it without $where (such as {$where: "this.thresold < this.value"}) ?
[21:09:16] <lestr> jpcaissy: http://docs.mongodb.org/manual/reference/operator/query/lt/
[21:15:22] <jpcaissy> lestr: the problem is that the value to compare is in the document itself. Is there an operator that I'm not aware or? Quick example here: http://pastie.org/8627402
[21:21:33] <lestr> jpcaissy: ok, i don't know any other way, only $where. Maybe somebody other