Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Unique Index with Batch Inserter bug v1.9 snapshot
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kantube  
View profile  
 More options Sep 30 2012, 11:34 pm
From: kantube <mich...@mkanner.com>
Date: Sun, 30 Sep 2012 20:34:28 -0700 (PDT)
Local: Sun, Sep 30 2012 11:34 pm
Subject: Unique Index with Batch Inserter bug v1.9 snapshot

v 1.9 snapshot

when doing the following over REST

post /db/data/index/node/users_index?uniqueness=create_or_fail
{"value":"j...@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":"j...@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 :) )


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »