When I use https://github.com/aerospike/delete-set I have to run it a few times to actually delete all the records.
My guess is that delete is not atomic and data first deleted from primary only so if there is a migration running in parallel (because of multiple deletes) then data will be partially restored.
Are there configuration parameters to execute this sort of operations consistently or if this is a known bug then when it will be fixed?
I used the two methods described in the instructions http://www.aerospike.com/community/labs … _data.html. But in the end I get set with the number of objects equal to 0. set itself is not deleted. It is possible to completely remove the set?
Record deletes are atomic.
Delete-set works on records partition-by-partition, sequentially by partition id on a node, and independently on each node.
In the migration case, It is possible that a specific partitionA is migrated to nodeX, after nodeX has already processed passed that partition id. Thus, after cluster migration is finished, a re-issue of the “delete-set” command against all nodes is recommended.