PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 3rd of May, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[09:58:52] <Kake_Fisk> How can I provoke an error in collection.aggregate? I want to test my error handling
[12:51:56] <marcelofr> Hi!. I'm testing replica set and succeded building primary+secondary+arbiter. I 've shutdown all three servers and now the replica set is down: "Our replica set config is invalid or we are not a member of it"
[12:52:02] <marcelofr> how do I recover?
[13:46:31] <marcelofr> SOLVED: dns problem...
[14:02:34] <jdipierro> Good morning. I'm trying to split chunks in an existing collection with a hashed shard key. Looking at the sharding status the chunk ranges for a hashed key appear to be converted to NumberLongs. Is there an easy way to just say "I want 200 chunks" or do I need to calculate the middles for each of the 200 chunks between the min and max of NumberLong?
[14:03:20] <Derick> jdipierro: i would strongly recommend that you do not mess by hand with the splitting of chunks in a non-empty collection
[14:03:24] <Derick> it's asking for problem
[14:04:03] <jdipierro> It is mostly-empty :P Okay, I'll look into if we can reprovision the collections using `numInitialChunks`. Thanks
[14:40:04] <guardian> I don't install mongodb-serer so often. I just took a debian stretch and installed the mongodb-server package. Connecting with mongo shell show there's only a local db
[14:40:11] <guardian> I expected to see at least an 'admin' db
[14:40:13] <guardian> what gives?
[14:43:14] <Derick> it'll probably get created when you insert your first data
[14:44:31] <guardian> nope :)
[14:45:01] <Derick> which version did you install?
[14:46:39] <guardian> stretch (debian stable) gave me 3.2.11
[14:47:03] <guardian> that's old in fact
[14:47:33] <Derick> yeah
[14:48:14] <Derick> you want one from https://docs.mongodb.com/master/tutorial/install-mongodb-on-debian/#import-the-public-key-used-by-the-package-management-system — but I am not sure we do strech
[14:51:37] <guardian> hmm but there are no official packages for Debian Stretch
[14:51:49] <guardian> which surprises me, it's been the stable version for something like 1 year
[14:53:32] <guardian> looks like you're working on it https://jira.mongodb.org/browse/SERVER-29463
[14:56:05] <Derick> i'm not sure whether 3.6.5 is out yet
[14:56:21] <Derick> nope, soon, I think
[20:53:43] <aFeijo> hi folks
[20:54:24] <aFeijo> I was wondering if I can write a single command line that will create a db and an user? I am trying it with db.createUser() but if I use "mongo newdb -u admin" it say "login failed"
[20:56:05] <aFeijo> hmmm maybe I can do it with getSiblingDB('db')
[21:05:04] <aFeijo> yeah looking good