PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 27th of March, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:16:24] <Leech> hi, I have a map reduce that needs to run every day, and my main search engine uses the collection generated by the mr. What's the best way to avoid any search problems while I run the mr?
[01:17:08] <Leech> I was thinking in runnnig the mr to another collection and then delete search collection and rename the new one, but not sure about delete+rename timing
[09:28:37] <c3l> How do I find() several documents in a given order? That is, I have an array of ObjectIds and want to fetch documents in exactly this order. Right now I need to either make each DB request separately or manually sort the result afterwards...
[09:53:38] <kAworu> is it possible to use operators with $size ?
[09:54:46] <kAworu> If I want every document where the array property has a size bigger than three: db.foo.find({array: {$size: {$gt: 3}}})
[09:54:51] <Nodex> c3l : are you using $in ?
[09:55:03] <Nodex> kAworu : that's not possible
[09:55:14] <Nodex> you must manually record the array size as a separate feidld
[09:55:15] <kAworu> Nodex: alright, I have to use $where then right ?
[09:55:18] <Nodex> field
[09:55:45] <c3l> Nodex: yes
[09:55:57] <kAworu> Nodex: is using $where equivalent ? I guess the counter method is way more performant though.
[09:56:02] <Nodex> http://docs.mongodb.org/manual/reference/operator/query/where/ <--- doesn't use indexes
[09:56:26] <Nodex> c3l : are you sure it's not returned in the order you're asking for with the $in ?
[09:56:42] <kAworu> Nodex: yes sorry by equivalent I wanted to ask if it could also be achieved using $where
[09:57:49] <Nodex> I am not sure, I don't use it for the reason of it doens't use indexes
[09:58:22] <c3l> Nodex: Yes, I just double checked by changing order in the $in array, same result
[09:59:20] <Nodex> c3l : I don't think it's possible to put an arbitrary sort on the documents
[10:19:42] <c3l> Nodex: I ended up doing this http://pastie.org/8972749
[10:26:15] <saalaa__> c3l: yes, that's the correct way
[10:26:31] <c3l> cool :)
[10:29:53] <Nodex> so you reveretd back to doing it on your client?
[11:00:14] <jepoy> hi anyone running mongodb on aws?
[11:01:02] <jepoy> is it okay to set my mongos to m1.medium or lower?
[11:01:17] <jepoy> same with my mongoc
[11:01:37] <jepoy> but mongod will be higher type of instance
[11:04:41] <Nodex> I think there is a write up bout Mongodb on aws and what's recommended in the docs
[11:13:34] <jepoy> Nodex: thanks i will look into those. :)
[11:28:40] <saalaa__> jepoy: pay attention to IO performance especially
[11:39:52] <greybrd> can't I modify the _id field of a document in mongodb? when tried it says "cannot change _id of a document". what to do?
[11:41:19] <Nodex> why do you need to modify it
[11:42:47] <greybrd> Nodex: requirement :-) . have added a new field in a map-reduce job which runs every hour. but still the existing documents need to be updated.
[11:44:10] <Nodex> can you not modify another field instead?
[11:52:10] <greybrd> Nodex: yes. other than _id I can modify.
[12:09:17] <Nodex> err, I was asking. Why can't you just modify another field
[12:09:19] <Nodex> LOL
[12:09:58] <Leech> hi, I have a map reduce that needs to run every day, and my main search engine uses the collection generated by the mr. What's the best way to avoid any search problems while I run the mr?
[12:10:02] <Leech> I was thinking in runnnig the mr to another collection and then delete search collection and rename the new one, but not sure about delete+rename timing
[13:35:58] <mylord> performance: does it matter how long my document item names are? ie, packageName : “com.mysite.app” vs pn:”com.mysite.app”?
[13:37:35] <mylord> should i typically use, e..g “pn” instead of “packageName” where I, and would-be other views, can pretty easily figure out/remember what pn is? for performance/storage, or does the server remap those names to some optimized bit-mapping anyhow?
[13:41:43] <Nodex> mylord : it's avisable to shorten your keys where possible
[13:43:41] <mylord> k… should my rest paths typically be, e.g., /something/pn, or something/packageName ?
[13:51:23] <Indium> Anyone here with experience with the Java mongodb driver?
[13:51:44] <Nodex> mylord : that's really up to you, it's your app
[13:52:18] <cheeser> Indium: ask your question and see...
[13:55:58] <Nodex> There has to be at least one person in the room that uses Java :P
[13:56:33] <Indium> I'm doing a findandmodify to get a value and set a field to "processing" so the next time the same findandmodify will return the another row
[13:57:18] <Indium> (I use the find to get only rows that don't have the "processing" value set)
[13:57:26] <Indium> single threaded, this works like a charm
[13:58:26] <Indium> but with multiple threads, the same row gets fetched by all the threads
[13:59:15] <Indium> probably because of a concurrency cache problem
[13:59:18] <Indium> any ideas?
[13:59:40] <cheeser> not without seeing code
[14:00:01] <Indium> pastebin or just post it here?
[14:07:25] <cheeser> pastebin
[14:07:32] <cheeser> you should never paste in to an irc channel
[14:24:32] <LoneSoldier728> Story.find({followers: {$nin: [user]}}, "_id name", {$sort: {date: -1}, skip: skipCount, limit: limit}, function(err, results) { I thought I was making a correct query here but for some reason it still shows stories that have the userId in it
[14:28:41] <Indium> the code: http://pastebin.com/Z45CHqk9
[14:28:53] <Indium> or do you need more?
[14:37:41] <LoneSoldier728> http://stackoverflow.com/questions/22690856/how-to-query-all-documents-in-mongodb-that-do-not-have-a-specific-id
[14:37:59] <LoneSoldier728> anyone know how to do that
[14:41:56] <cheeser> http://docs.mongodb.org/manual/reference/operator/query/in/#use-the-in-operator-to-match-values-in-an-array
[14:42:00] <cheeser> wrap in a $not
[14:43:48] <LoneSoldier728> how do I wrap in not {tags: {$not: {$ne: id} }}
[14:43:52] <LoneSoldier728> should that be find
[14:43:53] <LoneSoldier728> fine*
[14:44:05] <LoneSoldier728> ne i think can be used since it is actually just one item
[14:44:35] <LoneSoldier728> but i think the $nin operator is the same thing
[14:44:40] <cheeser> $not : { tags : { $in : [ ... ] }}
[14:44:44] <cheeser> just spit balling
[14:44:46] <LoneSoldier728> ah
[14:44:57] <LoneSoldier728> ok
[14:45:08] <LoneSoldier728> instead of in I can use $ne right?
[14:46:02] <Nodex> a double not ??? lol
[14:46:30] <LoneSoldier728> ah didnt realizy that
[14:47:01] <LoneSoldier728> so what is the point of not? then
[14:47:31] <LoneSoldier728> isnt $nin the same as that
[14:51:59] <Nodex> $nin is the opposite of $in
[14:52:10] <LoneSoldier728> right
[14:52:13] <LoneSoldier728> cheeser is incorrect
[14:52:15] <Nodex> $ne is for not equals and $not is a boolean
[14:52:28] <Nodex> it's to test a true statmen
[14:52:34] <cheeser> am I
[14:52:35] <cheeser> ?
[14:52:46] <Nodex> I don't see why the $nin doens't work
[14:52:48] <LoneSoldier728> yeah I just tried it, brings an empty results
[14:52:54] <cheeser> strange
[14:53:00] <Nodex> please pastebin the actual query that gets sent
[14:53:25] <LoneSoldier728> http://stackoverflow.com/questions/22690856/how-to-query-all-documents-in-mongodb-that-do-not-have-a-specific-id
[14:53:31] <LoneSoldier728> that is the query
[14:54:13] <Nodex> what does "[user]" look like?
[14:54:17] <wc-> hi all, i have a list of embedded docs, is it possible to query for a field on one of those embedded docs and return only that embedded doc instead of the whole list?
[14:54:34] <LoneSoldier728> it is just a userId
[14:54:36] <LoneSoldier728> one id
[14:54:43] <LoneSoldier728> so it does not even have to be a nin
[14:54:48] <LoneSoldier728> it can be a $ne
[14:55:06] <Nodex> is it supposed to be an ObjectID ?
[14:55:20] <LoneSoldier728> the issue I am having is that the document has an array and it will have to check the whole array to make sure that objectId is not in it
[14:55:29] <LoneSoldier728> yeah an objectid, the users' objectid
[14:55:57] <Nodex> and you're sure that you're sending an ObjectId as [user] ?
[14:56:17] <LoneSoldier728> yeah i have it showing up as the userid in the console
[14:57:04] <Nodex> please pastebin what the console says
[14:57:33] <LoneSoldier728> kk
[14:57:58] <Nodex> I have a feeling you are not casting the user properly
[14:58:47] <LoneSoldier728> kk yeah maybe
[14:59:58] <LoneSoldier728> http://pastebin.com/x2iqnm5C
[15:00:15] <LoneSoldier728> that is the first line for user and I just wrap it in an array
[15:00:36] <LoneSoldier728> and all the documents in the db get printed for example I have that being returned in results
[15:01:03] <Nodex> it's a string and I'm assuming it's not a string in your collection?
[15:01:07] <Nodex> in the followers field
[15:01:42] <LoneSoldier728> it is an objectId
[15:02:12] <LoneSoldier728> ok so yeah is an ObjectId not a string?
[15:02:23] <LoneSoldier728> do i have to convert the string?
[15:02:41] <Nodex> or the objectId
[15:02:56] <Nodex> it's easier to cast it in the query than migrate your DB / code
[15:04:54] <LoneSoldier728> I just converted the string to an objectid var user = mongoose.Types.ObjectId(req.query.userid);
[15:05:06] <LoneSoldier728> but still getting the same results
[15:05:48] <Nodex> unfortunatley you're going to have to pastebin a typical document and pastebin the actual query (the data) being sent to the server for debuggin
[15:05:51] <Nodex> +g
[15:11:36] <LoneSoldier728> http://pastebin.com/M1iEYX7B there Nodex
[15:12:06] <LoneSoldier728> I added the GET call, then that is the query I have been using and the bottom is grabbed from my db
[15:21:40] <Nodex> I still need to see the raw query that Mongoose is sending
[15:22:21] <Nodex> can you do this .... var a={followers: {$nin: [user]}}, "_id title", {$sort: {date: -1}, skip: 0, limit: 100}}; console.log(a);
[15:22:33] <Nodex> and pastebin the console.log
[15:30:52] <LoneSoldier728> k
[15:37:16] <LoneSoldier728> Nodex http://pastebin.com/uLi8uk7Q
[15:39:06] <Nodex> _conditions: { followers: { '$nin': [user] } }, <----- it's sending it as a string it would seem
[15:39:36] <LoneSoldier728> maybe this model schema can be affecting it... I am adding it to the new pastebin http://pastebin.com/DKjwan0A
[15:39:53] <Nodex> perhaps try console.dir ? maybe it will expand the arrays and objects a bit more
[15:41:17] <LoneSoldier728> { '$nin': [Object] },
[15:41:26] <LoneSoldier728> it is saying that when I do console.dir
[15:41:31] <LoneSoldier728> is that wrong?
[15:57:13] <Nodex> I don't have a clue what Mongoose does to Objects so I can't comment
[15:58:20] <LoneSoldier728> hm
[15:58:28] <LoneSoldier728> k but besides that is the query find?
[15:59:01] <LoneSoldier728> is it inefficient to grab the results and just sort through them on the server side?
[16:06:29] <Nodex> how is it inefficient?
[16:18:07] <madalynn> hello
[16:18:16] <madalynn> im having some issues with mongodb
[16:18:20] <madalynn> anyone awake?
[16:19:44] <madalynn> i cant seem to use scripting to pass output to a file
[16:19:55] <madalynn> mongo somescript.js > somefile.csv
[16:20:31] <madalynn> mongo keeps attempting to connect my my local machine, when inside the js the params for the remote server exist
[16:21:26] <rybnik> madalynn can you elaborate?
[16:21:41] <rybnik> you want mongo to connect to a specific server and run the specified file ?
[16:21:48] <madalynn> correct
[16:21:52] <LoneSoldier728> Nodex because I figured that getting that mongo is much quicker in scanning for it rather than grabbing all results then looping through each array
[16:21:53] <Nodex> --eval
[16:22:19] <rybnik> madalynn try the following mongo hostIP/database script.js > outputfile
[16:22:35] <Nodex> LoneSoldier728 : your query should be using $nin which just uses a btree to remove anything inside the array
[16:23:01] <rybnik> madalynn you might want to throw a --quiet in there
[16:23:11] <rybnik> madalynn does that solve your problem ?
[16:23:41] <LoneSoldier728> right that is what I am doing right now, but I was just saying it is better to have mongo remove the unnecessary documents than getting all results then doing it serverside
[16:23:51] <LoneSoldier728> in nodejs as oppose to my db
[16:24:04] <madalynn> rybnik: invalid ns
[16:28:36] <Nodex> In my opinion it's not better, there is no need to put that load on your app
[16:28:58] <madalynn> rybnik: can you specify credentials on the commandline as well?
[16:36:08] <rybnik> madalynn yes, but you've specified an invalid namespace (I believe). Anyway, to pass along your credentials use the -u and the -p flag on the command line to specify the required credentials
[16:36:43] <rybnik> madalynn mongo -u myUser -p myPassword myhost/myDatabase myscript.js > myoutputfile
[16:36:54] <rybnik> madalynn Does this solve your problem ?
[16:36:59] <madalynn> rybnik: indeed, i think this is almost fixed...give me one second :)
[16:39:17] <madalynn> rybnik: it just says in the file "connecting to: myserver.com:9999/mydatabase"
[16:39:45] <madalynn> in the output file :)
[16:40:07] <rybnik> madalynn care to send a pastie with the following: The command line invocation (please omit user credentials) and the script that you want to run
[16:40:30] <rybnik> madalynn http://pastie.org
[16:46:30] <LoneSoldier728> so Nodex instead of doing it in the db I should be doing it on my server side?
[16:54:09] <Nodex> eh ?
[16:54:22] <Nodex> no you should be doing in your DB
[17:08:35] <thearchitectnlo1> how can i export to csv from mysql to be able to work with —headerlines ?
[17:12:40] <calango_> whatup
[17:12:48] <Nodex> the sky
[17:12:52] <calango_> man, i need help
[17:13:31] <calango_> i like how to with a cookbook
[17:13:39] <Nodex> lol
[17:13:47] <Nodex> best to just explain the problem
[17:15:49] <calango_> a 'cookbook' with practical examples mongodb
[17:30:32] <LoneSoldier728> Nodex right that is what I thought, I am just confused why the query does not return the results
[17:34:23] <Nodex> my advice is ceho out the actual query and try it on the shell
[17:34:30] <Nodex> who knows what shit Mongoose does to it
[17:36:51] <LoneSoldier728> right
[17:36:58] <LoneSoldier728> im going to try that
[17:44:44] <LoneSoldier728> wow Nodex thanks
[17:44:51] <LoneSoldier728> you ended up opening my eyes
[17:46:10] <LoneSoldier728> i had an s extra
[18:23:57] <proteneer> i keep getting 2014-03-27T11:19:59.962-0700 [conn3] ERROR: SSL peer certificate validation failed:certificate not trusted
[18:24:41] <kesroesweyth> In v2.4.9, is there a way to update a document with a partial object from PHP and not blow away other object attributes that existed previously but weren't defined in the new object?
[18:25:50] <kesroesweyth> Like if my collection contained {field1: "value1,field2: "value2"} and I wanted to add {field2: "new value2",field3: "value 3"} without clobbering field1, if that makes sense.
[18:25:58] <kesroesweyth> document*, rather.
[18:42:52] <kesroesweyth> The blog says that partial object updates are possible. I need to basically merge an object with an existing one in Mongo within a single document. Is this possible?
[18:50:22] <bluefoxxx> What is the correct way to aggregate data by reference in MongoDB?
[18:51:58] <bluefoxxx> i.e. if I have a document package={ 'name': 'handyman', 'discount': 0.15, 'bundle': [ ObjectId("11773355aabbccdd"), ObjectId("11559922ffaaccbb") ] }
[18:52:35] <bluefoxxx> and I want to pull a document that has 'bundle' set to an array of documents instead of ObjectId()
[18:52:49] <bluefoxxx> I can't figure out how to do it with mapReduce() or aggregate()
[18:53:00] <bluefoxxx> mapReduce says neither function should access the database
[19:09:14] <Nodex> bluefoxxx : references are a convienince, they don't actually do anything
[19:09:46] <Nodex> if you're using references then the chances are you're doing it wrong
[19:10:02] <bluefoxxx> we have many to many mapping.
[19:10:28] <Nodex> that's unlucky then
[19:10:31] <bluefoxxx> yeah
[19:10:35] <bluefoxxx> our first attempt was in MySQL
[19:10:43] <Nodex> you're going to have to re-think your strategy
[19:10:47] <bluefoxxx> however the data set was natively XML with complex and variable schema.
[19:10:57] <bluefoxxx> and subfields. Which were of user-defined schema.
[19:11:27] <bluefoxxx> Somebody decided that some of those fields should be able to reference other stuff and we should be able to return the full content of that stuff, so ... many-to-many.
[19:11:38] <Nodex> :/
[19:11:42] <bluefoxxx> Nodex, there's no real way to rethink this
[19:11:47] <Nodex> "Somebody" needs a kick in the head then lol
[19:11:57] <Nodex> head/face
[19:12:20] <bluefoxxx> We've considered embedding the data, but it's single-data: if you update it, you wind up updating it in 300 places, not all of which you may be able to find
[19:12:39] <bluefoxxx> and of course this is a terrible idea
[19:12:44] <bluefoxxx> because like
[19:12:49] <bluefoxxx> what if one object references another
[19:12:50] <Nodex> really depends how often the data gets updated
[19:12:52] <bluefoxxx> which references itself.
[19:13:05] <bluefoxxx> a -> b -> a -> b -> ...
[19:13:12] <Nodex> also embedding doens't mean you can't have that data in a separate collection
[19:13:21] <Nodex> (duplicate data)
[19:30:40] <h0rnet> is there some magic to get mms working? I always get this message
[19:30:43] <h0rnet> Either not primary agent, or no hosts configured. Sleeping..
[19:30:48] <h0rnet> Done. Sleeping for 54.8s...
[19:31:12] <h0rnet> I did install it on the primary, and I did configure the host via mms
[19:32:23] <h0rnet> awesome, it just started working
[19:32:47] <h0rnet> I really wish I could just create the host from the "Monitoring Agents" Tab
[19:33:09] <bluefoxxx> Nodex, can I get either aggregate() or mapReduce() to emit a document in full plus values?
[19:33:34] <h0rnet> seems silly to auto discover the host... but not be able to do anything with it... and make adding the host an extra step
[19:34:40] <bluefoxxx> i.e. d = { field1 : ObjectId(a), field2 : ObjectId(b), field3 : 7 } , but mapReduce() to get back r = {field1 : ObjectId(a), field2 : ObjectId(b), field3 : 7, references : [ObjectId(a), ObjectId(b)] }
[19:57:07] <_Andres> Hi, a quick question: How do I persist additional data about the relation with has_and_belongs_to_many ?
[19:58:01] <_Andres> Mongoid creates an array field of 'blabla_ids', how do I add more data to each relation?
[20:32:48] <ramfjord> Hello everyone!
[20:33:09] <ramfjord> I'm wondering if someone can help me construct a unique index that I need
[20:33:26] <ramfjord> 3 dimensions: creative_id, line_item_id, and date
[20:33:53] <ramfjord> if creative_id exists, it should exist across all 3
[20:34:08] <ramfjord> if creative_id is null, then that should be the only stat for (line_item_id, date)
[20:56:49] <segphault> Anyone here faced problems with writes being blocked by background flush ?
[21:12:52] <jello`> anyone around for some nooby advice on unexpected data returned from mongoose find() or findOne()?
[22:04:32] <h0bbit> hi is anyone around?
[22:05:04] <h0bbit> sigh.
[22:30:07] <h0bbit> seriously guys, does anyone hang around here?
[22:30:27] <h0bbit> http://i.imgur.com/1HaXSja.jpg
[22:47:02] <_Andres> h0bbit, I think nobody does because nobody knows how it works
[22:48:11] <h0bbit> _Andres, haha. :( :(
[22:51:30] <_Andres> h0bbit, Mongodb is like a siren. It sings a beautiful song that just sounds so irresistible. Getting started and storing your objects is so simple. Yet as time goes by and you start developing more complex relations between these objects.. it eats you alive.
[22:52:22] <h0bbit> _Andres, that's exactly my feeling right now.
[22:53:11] <h0bbit> my production server is failing, throwing more hardware at it doesn't work, mongodb docs are ambiguous, and there is no "support" to speak of.
[22:54:15] <_Andres> The docs are somewhat funny indeed, by the looks of it a lot of time has spent on it. Yet it lacks clear and concise examples
[22:54:15] <h0bbit> we've had trouble with mongodb before, but nothing of the kind I'm seeing today.
[22:54:18] <ramfjord> hehehe, _Andres, so true
[22:54:49] <lorgio> Does anyone know how MongoDB's MapReduce decides what chunks are processed in what order?
[22:55:07] <_Andres> It doesn't help that every mapper and driver has a different DSL in addition to MongoDB's own..
[23:02:54] <joannac> h0bbit: you would do better to ask your question.
[23:03:30] <joannac> or give more details so someone *can* help
[23:05:45] <h0bbit> hi joannac
[23:05:51] <h0bbit> my question is this.
[23:05:57] <joannac> lorgio: i thought the entire point of mapreduce was that you couldn't pick an order that the results come back. There is a query and a sort so you can in theory, control the order things come in?
[23:06:18] <h0bbit> I have a bad secondary in my system, where my read operations are failing.
[23:06:57] <h0bbit> MMS graphs show me that a background flush has started on the system, and it has now been nearly an hour since any read on that machine has succeeded.
[23:07:25] <h0bbit> I want to pull the secondary out of the replica set, but everything in the docs seems to suggest that this will lead to a re-election
[23:07:38] <h0bbit> which will cause me to lose writes on the primary
[23:07:44] <h0bbit> which I cannot afford.
[23:07:54] <h0bbit> I want to know how I should deal with this situation.
[23:08:11] <joannac> ummm, no?
[23:08:21] <joannac> rs.status() shows the secondary and unreachable?
[23:08:56] <joannac> as long as you have majority even with the seconbdary dead, there will be no re-election
[23:09:42] <h0bbit> rs.status() shows the secondary.
[23:10:01] <h0bbit> I don't think every read on that machine is failing, but a significant number of them are.
[23:10:03] <joannac> shows the secondary as a secondary? or as DOWN?
[23:10:11] <h0bbit> as SECONDARY
[23:10:20] <joannac> how many nodes in your set?
[23:10:25] <lorgio> joannac: no it's not that the results come back in...what i'm asking is how it picks the chunks of values to reduce and re-reduce
[23:10:56] <h0bbit> 7 members in the set. I just added 1 an hour ago
[23:11:10] <h0bbit> I thought it might help reduce the load on the failing secondary
[23:11:18] <h0bbit> no luck.
[23:11:48] <joannac> just pull it out.
[23:12:01] <joannac> I did this yesterday with a 3 member set. pulled a secondary out. no re-election.
[23:12:08] <joannac> i just checked the logs again to make sure
[23:12:28] <joannac> your logs will get a bit sad. the replica set will keep trying to ping the secondary and reporting it's not there
[23:12:34] <joannac> but there won't be a re-election
[23:12:56] <joannac> PM me the docs that say otherwise, and I'll get them fixed up if they're wrong
[23:13:10] <h0bbit> joannac, sure.
[23:13:42] <h0bbit> full disclosure, since we were in this situation an hour ago, we went ahead and pulled the machine out of the replica set.
[23:13:51] <h0bbit> and we did see a re-election.
[23:14:02] <joannac> h0bbit: um, what? logs
[23:14:05] <joannac> that shouldn't happen
[23:14:35] <h0bbit> I don't have the logs in front of me right now, but I do have the error emails. I'll get the logs in 5-10 minutes once my immediate problems have cooled down
[23:14:56] <h0bbit> also, what was even worse, the problem just started occuring on a different secondary
[23:14:58] <joannac> actually
[23:15:01] <joannac> let me clarify
[23:15:10] <joannac> when I say "pull it out", i mean "shut it down"
[23:15:11] <h0bbit> background flush followed by read failures.
[23:15:17] <h0bbit> oh
[23:15:20] <joannac> if you mean "reconfigure", then yes.
[23:15:25] <h0bbit> no, we removed it from the replica set
[23:15:31] <joannac> that will 100% cause a re-election
[23:15:38] <joannac> okay, my bad
[23:16:00] <h0bbit> here are the docs : http://docs.mongodb.org/manual/tutorial/remove-replica-set-member/
[23:16:14] <h0bbit> we were debating between removing from replica set and shutting down
[23:16:28] <h0bbit> there is no mention anywhere of what will happen on shutdown
[23:16:43] <h0bbit> so we went with the documented approach and removed the replica member
[23:16:51] <h0bbit> it didn't help much though.
[23:19:08] <h0bbit> btw, we have seen this problem (background flush leading to read operations failing) once before as well. inevitably happens under peak load.
[23:19:34] <h0bbit> I don't know if the background flush is responsible, correlation != causation etc.
[23:20:14] <h0bbit> the last time, we were able to resolve it by forcing secondarypreferred on some of our app servers for a short while.
[23:20:30] <h0bbit> this time around, it's the secondary that's failing.
[23:24:07] <joannac> PM me your MMS link?
[23:34:45] <lorgio> If I have a sort in my map reduce call, Can I assume that the emit values are sorted in that order?