Closed aleks-p closed 1 month ago
Looks good overall, however, I think we need to make sure that only the current leader removes blocks from the object storage. I might be mistaken, but this is not the case in the current version
Looks good overall, however, I think we need to make sure that only the current leader removes blocks from the object storage. I might be mistaken, but this is not the case in the current version
I've reworked things a bit, the blockcleaner
package now acts mainly as a store for the markers. The Raft command and handling is moved to the metastore
package. Instead of a leader check we now check that the instance that submitted the command against the instance running the command (using a generated id for now, but could be switched to use raft server ids).
I've also reduced the number of transactions dramatically, deletion is done in a single update transaction. Still lacking extensive test coverage but looks more robust in a dev deployment.
Adds a block cleaner package for tracking deleted blocks. The purpose is:
Some other details:
TODO: