[00:27:44] <pokEarl> Hmm, any suggestions on best way to write tests in Java when mongoDB is involved? an Embedded mongoDB (flapdoodle?) Fakemongo/Fongo, DBUnit, or using mockito is what seems to be the alternatives, but I don't really know what I am doing :(
[00:34:38] <cheeser> i just test with a dummy mongo. i'm writing this to make that easier: https://github.com/evanchooly/bottlerocket
[00:42:37] <pokEarl> Hmm ok, thanks for the suggestion cheeser, will look into it more tomorrow.
[04:13:11] <daidoji> hello, did mongoexport use to report records/s or am I misremembering?
[08:01:16] <nixstt> what can I do about a replicaset member stuck in rollback?
[08:03:17] <nixstt> is there anyway to bring a member stuck in rollback back online or do I have to do a full resync
[08:07:49] <kali> nixstt: it depends. if it is stuck before the first record of your oplog, then you need a full resync
[09:14:17] <_blizzy_> could anyone helpe me figure out why when I run this, on line 24, I get the error 'TypeError: undefined is not a function.' https://gist.github.com/NotBlizzard/60360e599ab7b995a33d
[09:47:05] <kas84> but it’s pretty much the same, if any, drop should have better perf, right?
[09:48:05] <kali> yeah, drop on the collection should be fast. remove() with no filtering, on the other hand will be linear time
[10:25:31] <aps> Why is WiredTiger not the default storage engine yet? Is it not production ready?
[10:27:45] <coudenysj> aps: it will be the default in a bit, if I'm correct
[10:29:51] <aps> coudenysj: So, what should I use if I'm creating a new db right now?
[10:35:06] <_blizzy_> could anyone help me figure out why at line 78, it's not saving the changes? https://gist.github.com/NotBlizzard/000ca4b492ac8cdce2d6
[10:40:06] <aps> I want to use WiredTiger as the storage engine but my team-mates are skeptical since it's not the default yet. May I know the reason why it's still not default? Is it not production ready yet?
[10:49:58] <lmatteis> how do i restore from json.gz files in a folder?
[10:53:30] <kali> lmatteis: chances are high you can't. mongodb bson format is richer than json, so json is not a suitable format for db backup and restore. what you can do is "import" these json files
[10:53:42] <_blizzy_> could anyone help me figure out why at line 78, it's not saving the changes? https://gist.github.com/NotBlizzard/000ca4b492ac8cdce2d6
[11:07:57] <pokEarl> cheeser (or whoever else might know) asked you yesterday about testing in Java for mongoDB and you suggested a dummy mongo, I am told we do have a test database set up as a replicate of our actual Database that I can use for testing, but I have gotten the impression that relying on an external Database while testing is not good?
[11:09:32] <cheeser> pokEarl: i don't mind it, personally. mocking a database doesn't actually test much of your code
[11:10:49] <pokEarl> But is there any major downside to just connecting to an external DB that I am not seeing vs setting up an in memory/embedded DB for the test?
[11:11:46] <cheeser> but there is no embedded form of mongodb so you'll need something external to your tests anyway.
[11:14:03] <pokEarl> Just that tests should optimally always be self sustaining etc I guess, but can probably do that at some later point if I/We find it wortwhile =p There seems to be something called flapdoodle which helps you with have an embedded mongo for testing but I might be lying here
[11:50:42] <Lope> Is there anything bad about storing HTML files in mongoDB for log purposes?
[11:55:33] <Lope> I need to keep zip files that are about 70K in size for about a week (11MB/user) or a month (44mb/user). I'm not at all worried about storage requirements in the near future given the number of users.
[12:02:32] <cheeser> you could use gridfs for that.
[12:02:48] <cheeser> or just store the html pages directly. you could even use TTL indexes to age them out of the system.
[13:04:16] <bogn> here is what pokEarl seems to be referring to: https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo
[14:00:26] <_blizzy_> could anyone help me figure out why my data isn't saving? https://gist.github.com/NotBlizzard/000ca4b492ac8cdce2d6 line 78
[14:01:20] <ito> hi. when i'm doing a mongodump/mongorestore on a replica set these messages appear in the verbose output:
[15:02:37] <bogn> last time I had a look at GridFS gridfs-fuse was the way to mount the files as a file system that you can browse. gridfs-fuse was alpha software, has that changed?
[15:04:27] <bogn> well the project hasn't been updated since then: https://github.com/mikejs/gridfs-fuse
[15:07:00] <bogn> hm, but it has a lot of forks: https://github.com/mikejs/gridfs-fuse/network
[15:19:46] <nixstt> is it safe to kil a running remove() query that’s been running for a long time in the mongo shell?
[15:30:10] <skiold> i'm looking into stats extraction for members of a replica set using the v2 ruby driver. If I'm not explicit about the driver .new() options the code always connects to the primary. What makes more sense in the options hash: `:connect => :direct` or `:read => {:mode => :nearest}`
[15:30:25] <skiold> i'm always connecting to the mongod on localhost
[16:06:47] <spokrandt> hello, trying to get mongo up for my 2nd yime. built 3 systems got them up and running and had to change there names. I reconfigured the replica set and the master sees the replicas as DOWN. can someone point me to a doc that explains how to drop everything and start over.. and yes I've looked on google
[16:31:46] <kali> spokrandt: just strop them and delete everything in the dbpath directory
[19:32:10] <plastikman> I have a question about Mongos
[19:32:35] <plastikman> If i only have a 3 node cluster, one master, one slave, and one arbiter...Do i actually need mongos?
[19:35:09] <plastikman> well, right now i will not be crushing these machines anyway.
[19:36:48] <plastikman> so if I want to split up my read and writes, would I just talk to the master for writes then talk to the slave for reads? does the arbiter do anythign other than vote in the event of a failure?
[19:37:18] <plastikman> I am a complete mongoDB newbie
[19:37:26] <plastikman> I am sorry if these questions are simple
[19:38:33] <kali> the arbiter only votes, it does not hold any "real" data
[19:39:09] <plastikman> Understood. It is not a router or anything special like that. Just there to protect against split brain
[19:39:36] <kali> plastikman: the client will let specify at various levels (connection, db, collection, query) if you want the reads to occur preferably on a slave or the master
[19:40:07] <kali> by the way, the right terminology is "primary" and "secondary"
[19:40:51] <plastikman> So in a nutshell: The clients need to be individually configured to speak to the "Primary" for writes and the "Secondary" for reads.
[19:41:22] <plastikman> If I end up splitting up the jobs a node failure is not transparent, correct?
[19:41:29] <kali> it's even simpler than that. you provides them the address of one (or preferably several) of the nodes, and they find out what's what
[20:04:20] <Doyle> Hi guys. Is there a preferred linux distro for mongodb? Centos vs Debian?
[20:23:46] <symbol> Curious if any of you actually have documents within a collection with differing structure. While a lot of the intros to Mongo like to show that you can store varying structure...I haven't seen it done in the wild.
[21:31:29] <duallain> I'm sure this is a silly question, but I've been looking for a bit and couldn't find an answer. I've tried to using WiredTiger, how can I verify that it was successful?
[23:01:07] <meonkeys> anyone using the slack integration? I'm wondering if channel name has to somehow include team name, or if it is really just "#channel"
[23:01:21] <meonkeys> (also, it would be really nice if there were some way to test alerts)