ExStorageService.Cluster.Repair.Handler (ex_storage_service v0.6.2)

Copy Markdown View Source

Idempotent execution for repair and excess-replica cleanup jobs.

Job payloads are hints only. Every attempt strongly reloads the descriptor, membership, and locations and recomputes placement before touching bytes.

Summary

Functions

perform(job, context)

perform(job, context, opts)

@spec perform(
  ExStorageService.Metadata.Models.Job.t(),
  ExStorageService.Context.t(),
  keyword()
) ::
  :ok | {:error, term()}