Documentation ¶
Index ¶
- Constants
- func CmdAllStoresCompleted() loop.Cmd
- func CmdMergeNotReady(nextUnit Unit, reason string) loop.Cmd
- type Kind
- type MsgAllStoresCompleted
- type MsgMergeFailed
- type MsgMergeFinished
- type MsgMergeNotReady
- type Result
- type Stage
- type Stages
- func (s *Stages) AllStoresCompleted() bool
- func (s *Stages) CmdStartMerge() loop.Cmd
- func (s *Stages) CmdTryMerge(stageIdx int) loop.Cmd
- func (s *Stages) FetchStoresState(ctx context.Context, segmenter *block.Segmenter, ...) error
- func (s *Stages) FinalStoreMap(exclusiveEndBlock uint64) (store.Map, error)
- func (s *Stages) LastStageCompleted() bool
- func (s *Stages) MarkJobSuccess(u Unit) (shadowedUnits []Unit)
- func (s *Stages) MarkSegmentMerging(u Unit)
- func (s *Stages) MarkSegmentPartialPresent(u Unit)
- func (s *Stages) MarkSegmentPending(u Unit)
- func (s *Stages) MergeCompleted(mergeUnit Unit)
- func (s *Stages) MoveSegmentCompletedForward(stageIdx int)
- func (s *Stages) NextJob() (Unit, *block.Range)
- func (s *Stages) OutputModuleIsIndex() bool
- func (s *Stages) StageModules(stage int) (out []string)
- func (s *Stages) StatesString() string
- func (s *Stages) UpdateStats()
- func (s *Stages) WaitAsyncWork() error
- type StoreModuleState
- type Unit
- type UnitState
Constants ¶
View Source
const ( KindMap = Kind(iota) KindStore )
Variables ¶
This section is empty.
Functions ¶
func CmdAllStoresCompleted ¶
Types ¶
type MsgAllStoresCompleted ¶
type MsgAllStoresCompleted struct {
Unit
}
This means that this single Store has completed its full sync, up to the target block
type MsgMergeFailed ¶
type MsgMergeFinished ¶
type MsgMergeFinished struct { Unit } // A single partial store was successfully merged into the full store.
type MsgMergeNotReady ¶
type Stages ¶
type Stages struct {
// contains filtered or unexported fields
}
func (*Stages) AllStoresCompleted ¶
func (*Stages) CmdStartMerge ¶
func (*Stages) FetchStoresState ¶
func (*Stages) FinalStoreMap ¶
func (*Stages) LastStageCompleted ¶ added in v1.6.0
func (*Stages) MarkJobSuccess ¶ added in v1.6.0
func (*Stages) MarkSegmentMerging ¶
func (*Stages) MarkSegmentPartialPresent ¶
func (*Stages) MarkSegmentPending ¶
func (*Stages) MergeCompleted ¶
func (*Stages) MoveSegmentCompletedForward ¶
func (*Stages) OutputModuleIsIndex ¶ added in v1.6.0
func (*Stages) StageModules ¶
func (*Stages) StatesString ¶
func (*Stages) UpdateStats ¶ added in v1.1.12
func (s *Stages) UpdateStats()
UpdateStats is gated to be called at most once per second. It runs the first time it is called.
func (*Stages) WaitAsyncWork ¶
type StoreModuleState ¶ added in v1.4.0
type StoreModuleState struct {
// contains filtered or unexported fields
}
An individual module's progress towards synchronizing its `store`
func NewModuleState ¶
func (*StoreModuleState) Name ¶ added in v1.6.0
func (s *StoreModuleState) Name() string
type Unit ¶
Unit can be used as a key, and points to the respective indexes of Stages.getState(unit)
func (Unit) MarshalLogObject ¶
func (u Unit) MarshalLogObject(enc zapcore.ObjectEncoder) error
type UnitState ¶
type UnitState int
const ( UnitPending UnitState = iota // The job needs to be scheduled, no complete store exists at the end of its Range, nor any partial store for the end of this segment. UnitPartialPresent UnitScheduled // Means the job was scheduled for execution UnitMerging // A partial is being merged UnitShadowed // will not be run directly, its outputs are created by the last stage of this segment UnitCompleted // End state. A store has been snapshot for this segment, and we have gone over in the per-request squasher UnitNoOp // State given to a unit that does not need scheduling. Mostly for map segments where we know in advance we won't consume the output. )
Click to show internal directories.
Click to hide internal directories.