PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Friday the 21st of September, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[14:43:56] <vfuse> I'm trying to do a $text search with a watch query but not able to do this getting "$match with $text is only allowed as the first pipeline stage"
[14:44:15] <vfuse> db.logstash.watch([{ $match: { $text: { $search: "servers" } }}])
[14:45:43] <Derick> watch already starts a pipeline internally, and your stages are added to that pipeline
[14:45:54] <Derick> that's not really clear from the error message though
[14:47:38] <vfuse> Ok so this is not possible?
[14:48:22] <Derick> I don't think so, no.
[18:21:07] <goldstar> I am trying to do (as per the docs): this.mongo = new MongoClient(new ServerAddress(host, port), credential);
[18:21:15] <goldstar> but keep getting: Cannot resolve constructor 'MongoClient(com.mongodb.ServerAddress, com.mongodb.MongoCredential)'
[18:22:10] <goldstar> either Im doing something wrong, or the docs are wrong
[18:22:12] <goldstar> https://mongodb.github.io/mongo-java-driver/3.8/driver/tutorials/authentication/
[18:22:46] <goldstar> running latest version of mongo-java-driver
[18:22:55] <goldstar> w/ jdk 10
[18:55:11] <RusteiM> / #node
[20:40:51] <synthmeat> why would i be getting "MongoError: not master" (there's no slaveok thingie) with read pref secondarypref
[20:44:02] <synthmeat> it might be during index creation
[21:34:44] <synthmeat> no. it was a driver bug. but it's been fixed since. findAndModify didn't really go well with non-primary read pref