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
Currently, Riak does not allow users to clear/remove Bucket Types in any way (via command-line or API).
The reasoning is understandable -- if a bucket type was to be removed from the cluster metadata, all of the buckets and keys that "live" under it would be orphaned, and would no longer be accessible.
However, this is also very annoying while in development mode (or when testing anything related to bucket types) -- bucket types get created, and then stay forever. (Unless you completely clear and re-build the cluster).
How difficult would it be to implement an API call to "forget"/remove a bucket type from cluster metadata, while in Dev mode?
This operation would have several levels of safeguards:
It would only be available in dev mode, as mentioned.
On the GUI-side, pressing the 'Forget Bucket Type' button would pop up a warning, saying "Performing this operation is going to orphan all of the data that belongs to this bucket type -- all the buckets and keys under it will become inaccessible."
Optionally, we can leverage our convenience devmode-only "Delete Bucket" method (that performs batch deletes of all the keys in a bucket's key list cache) to actually clear out all the data from a bucket type before erasing it from metadata.
The text was updated successfully, but these errors were encountered:
I don't see a problem with utilizing the list buckets, then delete each bucket, then adding a bucket-type to an "ignore" or "tombstone" list that would just filter it from the results when listing types.
That's a great idea (the delete list). Although it would only affect people looking at the bucket type list through the Explorer interface, but hey, that's still a huge win.
I'll see if I can make sense of the Riak cluster metadata system that stores the bucket types. to see what's involved.
Currently, Riak does not allow users to clear/remove Bucket Types in any way (via command-line or API).
The reasoning is understandable -- if a bucket type was to be removed from the cluster metadata, all of the buckets and keys that "live" under it would be orphaned, and would no longer be accessible.
However, this is also very annoying while in development mode (or when testing anything related to bucket types) -- bucket types get created, and then stay forever. (Unless you completely clear and re-build the cluster).
How difficult would it be to implement an API call to "forget"/remove a bucket type from cluster metadata, while in Dev mode?
This operation would have several levels of safeguards:
The text was updated successfully, but these errors were encountered: