repairer

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "node.repairer"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// RepairIntervalMinutes is the period of the repair cycle, default 60.
	RepairIntervalMinutes int `yaml:"repairIntervalMinutes"`
}

type Repairer

type Repairer interface {
	app.ComponentRunnable
}

Repairer periodically self-heals spaces whose index status is Error (failed archive, corrupted db, missing data) while this node is responsible for them. It first tries to repair in place (the error may have been transient); a genuinely broken db is quarantined under <root>/.quarantine (data preserved for the operator) and a valid copy is pulled from another responsible node with the regular coldsync — the same mechanic anti-entropy uses for missing spaces, so it works on every network, shared bucket or not.

func New

func New() Repairer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL