patternMinor
Deleting aerospike bins
Viewed 0 times
deletingaerospikebins
Problem
I have an Aerospike instance and I messed up one of my namespaces. I didn't know there was a ~32k limit on bins, so I wrote unique bin names into my namespace. I hit that 32k limit, and now my whole namespace is hurting. How can I delete a bin from the entire namespace so I can free up my bin limit?
I've looked at the aerospike documentation and I just can't seem to find anything. I've even looked for 3rd party programs and I can't find anything there ether.
I've looked at the aerospike documentation and I just can't seem to find anything. I've even looked for 3rd party programs and I can't find anything there ether.
Solution
The data structure that maintains the bin information grows monotonically during the life of the process. The only way to remove Bin[s] from Aerospike is to first remove the bin from all records containing it followed by a rolling restart of the cluster.
You can find documentation on using scan here
And see DeleteBin.java in aerospike/examples for how to delete a bin.
You can find documentation on using scan here
And see DeleteBin.java in aerospike/examples for how to delete a bin.
Context
StackExchange Database Administrators Q#64311, answer score: 4
Revisions (0)
No revisions yet.