Files
seaweedfs/seaweed-block/core/frontend/errors.go
T

22 lines
913 B
Go

package frontend
import "errors"
// ErrStalePrimary is returned by Backend.Read / Backend.Write
// when the current projection lineage no longer matches the
// backend's Identity (sketch §7). Every operation re-reads the
// projection; open-time validation alone is insufficient.
var ErrStalePrimary = errors.New("frontend: stale primary lineage")
// ErrNotReady is returned by Provider.Open when the projection
// never reports healthy before the context deadline.
var ErrNotReady = errors.New("frontend: volume not ready")
// ErrBackendClosed is returned by Backend.Read / Backend.Write
// after Backend.Close has been invoked.
var ErrBackendClosed = errors.New("frontend: backend closed")
// ErrBackendBusy is a transient local admission timeout. Retry may succeed;
// it must not be used for a sticky persistence or integrity fault.
var ErrBackendBusy = errors.New("frontend: backend temporarily busy")