cockroachdb / cockroach

CockroachDB - the open source, cloud-native distributed SQL database.
https://www.cockroachlabs.com
Other
29.49k stars 3.69k forks source link

storeliveness: create package and interface #125058

Open miraradeva opened 3 weeks ago

miraradeva commented 3 weeks ago

Create storeliveness package, and Fabric interface.

// Fabric is a representation of the Store Liveness fabric. It provides
// information about uninterrupted periods of "support" between stores.
type Fabric interface {
    SupportFor(id slpb.StoreIdent) (slpb.Epoch, bool)
    SupportFrom(id slpb.StoreIdent) (slpb.Epoch, slpb.Expiration, bool)
}

Jira issue: CRDB-39243

Epic CRDB-37522

blathers-crl[bot] commented 3 weeks ago

cc @cockroachdb/replication