And, inserted some data into it. But later deleted some of the records from the Set.
To add one more namespace, restarted the aerospike. But found that the deleted records existing in aerospike.
To resolve this issue, also tried using different defrag type variables which are mentioned in this question.
And the values that used for the namespace are,
defrag-lwm-pct 100
Some records got deleted rather deleting the whole records which are told by aerospike client.
Finally, What can we do to delete whole records when they are marked as deleted?
Deletes will remove the reference in memory but actual record will still exist on disk until it is overwritten.
a cold start ( restart on the community edition) will force index to be rebuilt from disk.
Please see the following:
If you have a cluster of nodes with at least replication factor>=2 you may be able to use this option to ensure that the restarted node is re-indexed from its peer after data is replicated.
records relevant space has been reclaimed by the defrag
please help me with 3.7 & 3.9
It is important in my case because, I have zombie records and I suspect this is because, I rebooted the system before allowing the defrag to claim the space for the indexes deleted
In the near future there will be a solution for use cases requiring deletes. However, any such solution will likely incur some penalties (storage/performance costs), the best solutions will remain those that use expiration/eviction exclusively.