'have conflicting mods in update': strange case

214 views
Skip to first unread message

Claudiu Coman

unread,
May 21, 2012, 8:47:07 AM5/21/12
to mongodb-user
Hello,

I've encountered this error message several times in the past days.
I tracked it down to one case, I can try and find others, if there
isn't already
some sort of a "rule":

db.docs.update({'_id': 'foobar'}, {'$inc': {'5&29': 0, '05&29': 0}},
true)

From what I've found out by spending just a little time with it, the
bug is caused
by zeroes in the beginning, for example you get the same error for:

db.docs.update({'_id': 'foobar'}, {'$inc': {'005&29': 1, '000005&29':
2}}, true).

Those two keys should not be considered identical, should they?

Claudiu

Eliot Horowitz

unread,
May 21, 2012, 8:53:07 AM5/21/12
to mongod...@googlegroups.com
Yes, this is a bug that has recently been fixed for 2.2
Can you test this with the current nightly?
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb

Claudiu Coman

unread,
May 21, 2012, 9:14:05 AM5/21/12
to mongod...@googlegroups.com
I'm sorry, but I'm a bit behind with work and I can't test it right now.
Is there a change there would be a fix for earlier mongo versions,
like a patch or something?
We're currently using 2.0.3 and 2.0.5.

Claudiu

Barrie

unread,
May 23, 2012, 3:58:36 PM5/23/12
to mongod...@googlegroups.com
Unfortunately Claudiu there isn't currently a backport for this. 

> See also the IRC channel -- freenode.net#mongodb

--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to

horseT

unread,
Jun 11, 2012, 3:47:43 PM6/11/12
to mongodb-user
Hi,
Do you know when is planed the 2.2 ?

--
Paul

On 23 mai, 21:58, Barrie <bar...@10gen.com> wrote:
> Unfortunately Claudiu there isn't currently a backport for this.
>
>
>
>
>
>
>
> On Monday, May 21, 2012 9:14:05 AM UTC-4, Claudiu Coman wrote:
>
> > I'm sorry, but I'm a bit behind with work and I can't test it right now.
> > Is there a change there would be a fix for earlier mongo versions,
> > like a patch or something?
> > We're currently using 2.0.3 and 2.0.5.
>
> > Claudiu
>
> > On Mon, May 21, 2012 at 3:53 PM, Eliot Horowitz <el...@10gen.com> wrote:
>
> >> Yes, this is a bug that has recently been fixed for 2.2
> >> Can you test this with the current nightly?
>
> >> On Mon, May 21, 2012 at 8:47 AM, Claudiu Coman <claud.co...@gmail.com>
> >> wrote:
> >> > Hello,
>
> >> > I've encountered this error message several times in the past days.
> >> > I tracked it down to one case, I can try and find others, if there
> >> > isn't already
> >> > some sort of a "rule":
>
> >> > db.docs.update({'_id': 'foobar'}, {'$inc': {'5&29': 0, '05&29': 0}},
> >> > true)
>
> >> > From what I've found out by spending just a little time with it, the
> >> > bug is caused
> >> > by zeroes in the beginning, for example you get the same error for:
>
> >> > db.docs.update({'_id': 'foobar'}, {'$inc': {'005&29': 1, '000005&29':
> >> > 2}}, true).
>
> >> > Those two keys should not be considered identical, should they?
>
> >> > Claudiu
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "mongodb-user" group.
> >> > To post to this group, send email to mongod...@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > mongodb-user...@googlegroups.com
> >> > See also the IRC channel -- freenode.net#mongodb
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "mongodb-user" group.
> >> To post to this group, send email to mongod...@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> mongodb-user...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages