<    April 2017    >
Su Mo Tu We Th Fr Sa  
 2  3  4  5  6  7  8  
 9 10 11 12 13 14 15  
16 17 18 19 20 21 22  
23 24 25 26 27 28 29  
00:03 <jellycode> Anybody know how to do upsert with .NET client version 2.4
00:13 compeman_ joined
00:34 compeman_ joined
00:50 Gwayne joined
00:54 compeman_ joined
01:13 compeman_ joined
01:14 m1dnight_ joined
01:20 RBoreal_Frippery joined
01:32 kyuwonchoi joined
01:34 compeman_ joined
01:37 Siegfried joined
01:44 harry joined
01:53 compeman_ joined
02:00 jdawgaz joined
02:11 kyuwonchoi joined
02:14 compeman_ joined
02:18 NoOutlet joined
02:33 compeman_ joined
02:34 Siegfried joined
02:42 <jellycode> Do any of the mongo methods provide a way to do an Idempotent upsert on the document without replacing the document ID?
02:44 edrocks joined
02:49 gentunian joined
02:50 mdorenka joined
02:54 compeman_ joined
03:14 compeman_ joined
03:16 YoY joined
03:33 compeman_ joined
03:54 compeman_ joined
04:02 chen joined
04:13 re1_ joined
04:13 compeman_ joined
04:19 joshonth_ joined
04:34 compeman_ joined
04:39 philipballew joined
04:44 ayogi joined
04:46 edrocks joined
04:56 evulish joined
04:58 re1 joined
05:04 svm_invictvs joined
05:09 compeman_ joined
05:17 lpin joined
05:31 jwd joined
05:47 Waheedi joined
05:50 smokeysea joined
05:56 coudenysj joined
05:56 Sasazuka joined
06:04 blizzow joined
06:23 kyuwonchoi joined
06:23 akagetsu01 joined
06:24 kyuwonchoi joined
06:25 kyuwonchoi joined
06:25 kyuwonchoi joined
06:27 coudenysj1 joined
06:27 kyuwonchoi joined
06:39 preludedrew joined
06:48 edrocks joined
07:01 Lujeni joined
07:03 rendar joined
07:07 <Bodenhaltung> Derick: Hmm, crash: https://gist.github.com/Bodenhaltung/3410231a33a408512322d96ca0bec0ec Do you see any hint for the cause?
07:09 jri joined
07:28 greengreen joined
07:29 kyuwonchoi joined
07:29 <greengreen> hi
07:29 re1_ joined
07:31 <greengreen> is it possible to pull out only some subdocuments of collection, by filtering subdocument by part of the name ?
07:33 _jd joined
07:58 castlelore joined
07:59 brk_ joined
08:14 castlelore joined
08:38 gfidente joined
08:38 gfidente joined
08:39 goldfish joined
08:45 <Derick> Bodenhaltung: please report that ASAP to jira.mongodb.org/browser/SERVER
08:46 BadHorsie joined
08:47 yeitijem joined
08:48 <BadHorsie> I have a replicaset with one member removed (server rebooted), the prompt reads "rs:OTHER", how should I recover it? I tried rs.syncFrom("myprimary") but says that removed members cannot syncfrom...
09:04 <KekSi> BadHorsie: check the rs.conf() on the primary whether it's actually removed
09:05 <KekSi> or maybe the rs.status()
09:11 Waheedi joined
09:11 <BadHorsie> KekSi: From the primary: lastHeartbeatMessage: "Our replica set configuration is invalid or does not include us"
09:12 <BadHorsie> I'm playing with kubernetes, I wonder if the IP of the container that held the previous replicaSet member changed and the IP is still cached on the primary
09:13 <KekSi> did you restart the pod then and its hostname changed?
09:14 <BadHorsie> The node was rebooted and the pods went down with it...
09:22 <BadHorsie> I ran rs.reconfig(rs.conf()) on the primary, went back to the removed container, and it went into "SECONDARY"
09:22 <BadHorsie> Would there be data loss in this case?
09:32 kyuwonchoi joined
09:35 preludedrew joined
09:38 <Bodenhaltung> Derick: Oh, ok, done https://jira.mongodb.org/browse/SERVER-28877
09:40 brk_ joined
09:43 <Derick> +1
09:51 compema__ joined
10:03 aV_V joined
10:04 harry joined
10:15 arti joined
10:31 smokeysea joined
10:52 edrocks joined
11:01 harry joined
11:20 dareTake joined
11:24 okapi joined
11:26 compeman_ joined
11:29 jayline joined
11:29 Ratler joined
11:38 livesawyr joined
11:41 livesawyr joined
11:41 <livesawyr> .
11:42 undertuga joined
11:48 skot joined
11:51 greengreen joined
11:56 compema__ joined
12:00 jdawgaz joined
12:02 <greengreen> hi
12:03 <greengreen> I've trying a while fetching datas from collections which are in subdocuments
12:03 <greengreen> but, it looks like the sorting by subdocuments or filtering isn't the right approach
12:03 <greengreen> I suppose that I need to change the structure of mongodb
12:03 kyuwonchoi joined
12:05 <greengreen> it would be nice if someone could help me out with advice :)
12:08 compeman_ joined
12:22 StephenLynx joined
12:32 d10n-work joined
12:35 jri joined
12:36 Mia joined
12:36 Mia joined
12:42 edrocks joined
12:43 brk_ joined
12:45 edrocks joined
12:54 okapi joined
12:57 compema__ joined
13:15 swordbeta joined
13:15 goldfish joined
13:24 Siegfried joined
13:24 jri joined
13:30 compeman_ joined
13:32 veyron joined
13:37 veyron joined
13:38 veyron2 joined
13:39 <veyron2> hey!
13:39 <veyron2> anyone here that can help me with some questions i have about replication and the oplog?
13:44 <Derick> veyron2: only if you ask the questions :)
13:46 <veyron2> sure :)
13:47 <veyron2> so, what i need to know is: how does mongodb keeps the order/sequence of the documents when replicating?
13:48 <veyron2> imagine that the "slave" server receives a delete before an insert for the same document
13:49 <veyron2> it will try to delete a non existing document and then will insert it, but that's obviously wrong
13:51 <Derick> the same order is used as it was on the primary server
13:51 <Derick> every operation is put in the oplog, and secondaries run every operation in this oplog in order
13:53 <veyron2> right, that i know
13:53 <veyron2> :)
13:53 <veyron2> but i'm getting the documents from the opllo
13:53 <veyron2> *oplog
13:54 <veyron2> and i'm sending them (1 at a time) via a socket
13:54 <veyron2> (not sure if that's the same way that replication does it)
13:55 <veyron2> now, imagine that, for some reason, the socket does not deliver the document for some reason (is that even possible?)
13:55 <veyron2> what will happen?
13:56 <Derick> that can't happen with normal replication
13:56 <Derick> they are done in one connection, in order
13:56 diegows joined
13:56 <veyron2> so it uses some kind of sockets?
13:56 <Derick> it uses a single TCP connection
13:57 <veyron2> and sends a document at a time, right?
13:57 <Derick> (per replica node)
13:57 <Derick> it sends an operation (doesn't have to be a full document) at a time, yes
13:57 <veyron2> yes, it does not need to be a full document
13:58 <veyron2> ok, tyvm
13:58 <veyron2> and the sequence is controlled by the ts, right?
13:58 <Derick> rather by the insertion order into the oplog
13:59 <Derick> an oplog is a special collection (a capped collection) that provides that as an extra property
13:59 <veyron2> cool, thanks for your help! :)
14:00 <veyron2> btw, have you considered moving this channel to a slack channel? i think it would be better...
14:00 geoffb joined
14:00 jr3 joined
14:07 <diegows> hi, question, is there a way to export/import the shard keys?
14:08 <Derick> veyron2: we have no considered a slack channel.
14:08 <Derick> (which I also personally think is a bad idea for an open community group)
14:12 <diegows> I moved all the production data to a new cluster, but I need to set the same shard keys I'm using in prod
14:12 <diegows> I haven't found an easy method to do it
14:16 philipballew joined
14:20 markizano joined
14:21 <veyron2> Derick, ok :)
14:22 <veyron2> again, thanks for your help!
14:25 jri joined
14:28 basiclaser joined
14:35 evulish joined
14:35 kyuwonchoi joined
14:39 joshontheweb joined
14:42 mmoreno80 joined
14:46 <mmoreno80> hello. I need some help with mongodb. I have enabled the auth and it works, as you can see here http://pastebin.ca/3799981, but the mongodb accepts the connection even when I am not authenticated; I just want mongodb to reject connections that don't provide user/password. I mean, I want to enforce the use of `mongo --user USER --password PASSWORD'. Any idea about how to accomplish this?
14:51 <Derick> authentication is only done after a connection has been established through a server command
14:53 <mmoreno80> so, Derick, then I cannot prevent anyone from connecting to the server?
14:54 <Derick> I don't think *anything* supports that
14:55 <Derick> even with mysql it connects and then authenticates - it's just more hidden through their client libraries
14:55 <Derick> so no, you can't do that with auth, but of course you can block connections with OS level firewalls
14:55 <mmoreno80> good point.
14:56 <mmoreno80> thanks for the help, man. I appreciate it.
15:03 Soopaman joined
15:05 <Waheedi> while trying to install mongo 2.4.1 on ubuntu 16.04 I got this error http://paste.ubuntu.com/24420661/
15:05 <Waheedi> I have got few errors before that one and I made few changes to SConstruct and Sconscript removing the -Werror ccflag
15:12 ayogi joined
15:16 coudenysj joined
15:21 ramortegui joined
15:32 goldfish joined
15:32 joshontheweb joined
15:37 <cpama> hi all. having a hard time displaying a mongo date in human readable format. found out about the $dateToString option but I'm not sure how to implement it. I am using php7 and mongo 3.4
15:37 <cpama> Here's what I have so far: https://pastebin.com/HqP4w062
15:43 <cpama> cpama my bad, the collection name is location_history
15:50 <Waheedi> :)
15:53 <Derick> cpama: in PHP, use PHP's DateTime's methods - don't try to do it directly in the database query
15:54 <Derick> cpama: if you do foreach( get_document(...) as $doc ) { echo $doc['pb_run_rate']->toDateTime()->format( "Y-m-d ..." ); } should do the trick
16:01 blizzow joined
16:05 okapi joined
16:22 orbyt_ joined
16:25 <Waheedi> alright i passed through that error, by removing errnoWith.. call from print err
16:28 InfoTest joined
16:32 <Waheedi> sed 's/" << errnoWithDescription(err) << "/' /usr/local/src/mongo/src/mongo/util/stacktrace.cpp :)
16:32 <Waheedi> the whole thing looks differently in current version :)
16:34 joshontheweb joined
16:43 SkyRocknRoll joined
16:51 smokeysea joined
16:56 compeman_ joined
16:58 svm_invictvs joined
17:02 jrajav joined
17:03 megamaced joined
17:05 <cpama> @Derick, I've been trying via php but had some problems. I posted question on stackoverflow and they suggested that i used the db query
17:05 <cpama> http://stackoverflow.com/questions/43504327/how-to-extract-timestamp-from-mongodb-object
17:06 <cpama> that was my original question
17:06 kyuwonchoi joined
17:11 JohnsonAskot joined
17:13 <JohnsonAskot> So I'm doing paging on the server's side, is there a way to get the count of the number of documents matched while limiting the returned results to a specific number?
17:37 philipballew joined
17:43 jr3 joined
17:43 greengreen joined
17:45 GGMethos joined
17:49 jaequery joined
17:49 re1 joined
17:51 okapi joined
18:01 gentunian joined
18:11 Sasazuka joined
18:19 okapi joined
18:33 SkyRocknRoll joined
18:38 coudenysj joined
18:40 <akalaj> Does anyone know how to clone a user in mongo?
18:40 <akalaj> I have a mongo user on serverA that I need to have on ServerB
18:41 <akalaj> I've tried to restore the admin.system.user collection but they have different auth types.
18:43 edrocks joined
18:54 joshonth_ joined
19:06 gentunian joined
19:19 Waheedi joined
19:28 <cpama> can someone here help me answer this question: stackoverflow.com/questions/43528140/mongodb-query-by-id-is-not-returning-data
19:30 ramortegui joined
19:35 rendar joined
19:35 rendar joined
19:36 hillct joined
19:37 gentunian joined
19:40 druonysus_ joined
19:53 joshont__ joined
20:32 coudenysj1 joined
20:34 kyuwonchoi joined
20:37 blizzow joined
21:03 einseenai joined
21:12 itaipu joined
21:30 StephenLynx joined
21:37 druonysus_ joined
21:38 preludedrew joined
22:08 jr3 joined
22:22 itaipu joined
22:27 edrocks joined
23:05 kyuwonchoi joined
23:20 pxed joined
23:28 edrocks joined
23:57 steffes joined