basho / riak_kv

Riak Key/Value Store
Apache License 2.0
653 stars 233 forks source link

Handle reap and erase in batches #1862

Closed martinsumner closed 1 year ago

martinsumner commented 1 year ago

Avoid overloading the eraser/reaper process mailbox by sending the requests in batches (as already happened with range_repl), and waiting for a response.

When a job is used, not local, the batching is done from the clusteraae_fsm. This mechanism existed prior to this commit, and has not been changed, but has been extended to support the last-batch overflow