You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
The linked code will lead to a "SyntaxError: Unexpected end of input" crash: https://gist.github.com/awenger/6745092
I guess it isn't handling the "X-Riak-Deleted: true" Response properly.
I'm also wondering why the delete is creating a sibling?
The text was updated successfully, but these errors were encountered:
Hi,
I looked at this again and I think it's not the proper way. Because now the deleted Sibling is just ignored and the get returns only the undeleted Sibling, although it should be deleted. This leads to the impression that there was no conflict and the document still exists. But Riak is telling us that the delete was in conflict (as I understand it).
I looked a bit deeper in the code and found out that the delete operation doesn't set the proper vclock.
Changing Line 137 (request = bucket: self.bucket, key: key, vclock: self.vclock) to (request = bucket: self.bucket, key: key, vclock: self.reply.vclock) solved this for me.
With this change the siblings don't show up.
As mentioned before I still think Siblings with "X-Riak-Deleted: true" should show up in the response but I don't have an Idea how to represent them because most probably they won't validate with Json Schema
Hey,
The linked code will lead to a "SyntaxError: Unexpected end of input" crash: https://gist.github.com/awenger/6745092
I guess it isn't handling the "X-Riak-Deleted: true" Response properly.
I'm also wondering why the delete is creating a sibling?
The text was updated successfully, but these errors were encountered: