Unique Index with Batch Inserter bug v1.9 snapshot

23 views
Skip to first unread message

kantube

unread,
Sep 30, 2012, 11:34:28 PM9/30/12
to ne...@googlegroups.com
v 1.9 snapshot

when doing the following over REST

post /db/data/index/node/users_index?uniqueness=create_or_fail {"value":"ja...@member1.com","key":"Uid","properties":{"NodeType":"Member","Name":"jack member"}}

the first time you run this you receive a 200, as expected
the second time you run it you receive a 409(conflict) also as expected

however when running over BATCH

post /db/data/batch/ [{"method":"Post","to":"index/node/users_index?uniqueness=create_or_fail", "id":0, "body":{"value":"ja...@member2.com","key":"Uid","properties":{"NodeType":"Member","Name":"jack member"}} }]

the first time you run it you receive a 200

but the second time i get a 500 error not a 409

it looks like i must have missed this case in testing the code.  if you can verify that you get the same results i will try to fix this issue in the next week (unless you can spot the issue before can get to it :) )
Reply all
Reply to author
Forward
0 new messages