sh.addTagRange

76 views
Skip to first unread message

Marco Schirrmeister

unread,
Oct 2, 2012, 10:56:45 AM10/2/12
to mongod...@googlegroups.com
Hi,

I'm trying to get the tag aware sharding running. But I'm having problems with the tag ranges.
I'm running 2.2.0.

What I did so far was.
- enabled sharding on the database
- enabled sharding on the collection
- added a shard tag to the shards

If I now try to create the tag range, I get the following.
mongos> sh.addTagRange("test.test1", {'c':MinKey}, {'c':MaxKey}, "EU")
Tue Oct  2 10:40:33 uncaught exception: error: SyncClusterConnection::update upsert query needs _id

According to the documentation for sh.addTagRange() I think the command is correct.
Any hints what I am doing wrong?


Thanks
Marco

Asya Kamsky

unread,
Oct 2, 2012, 11:37:19 AM10/2/12
to mongod...@googlegroups.com
There is a bug that's going to be fixed in 2.2.1 - it should be out very soon.
Meanwhile you can try the release candidate and see that it fixes the problem.

Marco Schirrmeister

unread,
Oct 2, 2012, 2:32:07 PM10/2/12
to mongod...@googlegroups.com


On Tuesday, October 2, 2012 5:37:19 PM UTC+2, Asya Kamsky wrote:
There is a bug that's going to be fixed in 2.2.1 - it should be out very soon.
Meanwhile you can try the release candidate and see that it fixes the problem.


Thank you.
I will give that a try.


Marco Schirrmeister

unread,
Oct 15, 2012, 6:17:34 AM10/15/12
to mongod...@googlegroups.com
I can confirm it the error is fixed in 2.2.1-rc0
 
Reply all
Reply to author
Forward
0 new messages