bsonobjbuilder.h throw exception on FindAndModify but document is created

49 views
Skip to first unread message

Chris

unread,
Feb 25, 2011, 9:25:48 AM2/25/11
to mongodb-user
Hi,

Version 1.8.0 and 1.6.2 windows 2008 server 64, clean database

I do:

{ "findandmodify": "ANRS",
"query": { "_id.tenant": "default", "_id.campaign": "Mobiles",
"_id.lvid": "1", "_id.csid": "{153ab8a6-4c5b-47f3-a37d-dce85c8398ba}",
"_id.agent": "2001", "_id.asid": "{df39c429-9b04-4939-b4fe-
a9dd6434c836}" }
, "update":
{ "$inc":
{ "value.co": 0,
"value.sr": 0,
"value.talk_time": 0.000224999996135011,
"value.wrap_time": 6.90000015310943E-05,
"value.wait_time": -0.000293999997666106,
"value.total_calls": 1,
"value.live_calls": 1,
"value.commitments": 1,
"value.outcomes_agent.102": 1 },
"$set": { "value.ts": 40599.454715 } }, "new": true, "upsert":
true }

Then I got:

Assertion failure !e.eoo() e:\buildslaves\mongo\windows_64bit_nightly
\mongo\db\../bson/bsonobjbuilder.h 119 and (..h 116 line respectively)

However
-the document is created in database
-Update can handle this

Eliot Horowitz

unread,
Feb 25, 2011, 10:12:09 AM2/25/11
to mongod...@googlegroups.com
Is there a full stack trace in the log?

> --
> 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.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

Chris

unread,
Feb 25, 2011, 10:16:52 AM2/25/11
to mongodb-user
No, but I can provide it if there is a way.

The problem is with _id and not existing document - actual fact that
DB does insert.
Somehow this compound _id:

"query": { "_id.tenant": "default", "_id.campaign": "Mobiles",
"_id.lvid": "1", "_id.csid": "{153ab8a6-4c5b-47f3-a37d-
dce85c8398ba}",
"_id.agent": "2001", "_id.asid": "{df39c429-9b04-4939-b4fe-
a9dd6434c836}" }

prevents deserialization (?)

I narrowed problem to
"query": { "_id.tenant": "default"}

which still caused the problem. And it went well when I turned _id
into just string.

"query": { "_id": "default"}

Eliot Horowitz

unread,
Feb 25, 2011, 10:28:04 AM2/25/11
to mongod...@googlegroups.com
IF you can create a full example that breaks and make a new case on
http://jira.mongodb.org/ that would be great
Reply all
Reply to author
Forward
0 new messages