Keys aren't deleted

Andrew Thompson andrew at hijacked.us
Wed Aug 31 17:27:20 EDT 2011


On Wed, Aug 31, 2011 at 05:11:16PM -0400, Tony Bussieres wrote:
> Hi,
> 
> We have a cluster of two nodes.
> 
> We add keys to a bucket :
> curl -v -X PUT -d '{"prop":"val"}' -H "Content-Type: application/json"
> http://riak/store/jdTestBucket/key1?w=1
> curl -v -X PUT -d '{"prop":"val"}' -H "Content-Type: application/json"
> http://riak/store/jdTestBucket/key2?w=1
> curl -v -X PUT -d '{"prop":"val"}' -H "Content-Type: application/json"
> http://riak/store/jdTestBucket/key3?w=1
> curl -v -X PUT -d '{"prop":"val"}' -H "Content-Type: application/json"
> http://riak/store/jdTestBucket/key4?w=1
> 
> We shut down one node.
> 
> We delete the keys:
> curl -v -X DELETE http://riak/store/jdTestBucket/key1?w=1
> curl -v -X DELETE http://riak/store/jdTestBucket/key2?w=1
> curl -v -X DELETE http://riak/store/jdTestBucket/key3?w=1
> curl -v -X DELETE http://riak/store/jdTestBucket/key4?w=1
> 
> 
> We list the keys :
> curl -i http://riak/store/jdTestBucket?keys=true\&props=false
> 
> All keys are listed.
> 
> Is it normal?
> 

Yes, keys are only deleted when all the values are tombstones and all
the nodes are up. In theory bringing the other node back up and
re-reading the keys will read-repair the keys on the node that was down
to be tombstones and then hopefully they'll be removed.

However, deletes are flaky on 0.14. Things should be a little better in
1.0.

Andrew




More information about the riak-users mailing list