Documentation ¶
Index ¶
- Variables
- type Chore
- type Config
- type ProgressObserver
- func (progress *ProgressObserver) Finish(context.Context) error
- func (progress *ProgressObserver) Fork(context.Context) (rangedloop.Partial, error)
- func (progress *ProgressObserver) Join(context.Context, rangedloop.Partial) error
- func (progress *ProgressObserver) Process(ctx context.Context, segments []rangedloop.Segment) error
- func (progress *ProgressObserver) Report()
- func (progress *ProgressObserver) Start(context.Context, time.Time) error
- type SegmentSizes
- func (verify *SegmentSizes) Finish(context.Context) error
- func (verify *SegmentSizes) Fork(context.Context) (rangedloop.Partial, error)
- func (verify *SegmentSizes) Join(context.Context, rangedloop.Partial) error
- func (verify *SegmentSizes) Process(ctx context.Context, segments []rangedloop.Segment) error
- func (verify *SegmentSizes) Start(context.Context, time.Time) error
Constants ¶
This section is empty.
Variables ¶
var Error = errs.Class("verify")
Error is the default error class for the package.
Functions ¶
This section is empty.
Types ¶
type Chore ¶
Chore runs different verifications on metabase loop.
type Config ¶
type Config struct { ProgressPrintFrequency int64 Loop rangedloop.Config }
Config contains configuration for all the services.
type ProgressObserver ¶
type ProgressObserver struct { Log *zap.Logger ProgressPrintFrequency int64 RemoteSegmentCount int64 InlineSegmentCount int64 // contains filtered or unexported fields }
ProgressObserver counts and prints progress of metabase loop.
func (*ProgressObserver) Finish ¶ added in v1.80.3
func (progress *ProgressObserver) Finish(context.Context) error
Finish is called after all segments are processed by all observers.
func (*ProgressObserver) Fork ¶ added in v1.80.3
func (progress *ProgressObserver) Fork(context.Context) (rangedloop.Partial, error)
Fork creates a Partial to process a chunk of all the segments. It is called after Start. It is not called concurrently.
func (*ProgressObserver) Join ¶ added in v1.80.3
func (progress *ProgressObserver) Join(context.Context, rangedloop.Partial) error
Join is called for each partial returned by Fork.
func (*ProgressObserver) Process ¶ added in v1.80.3
func (progress *ProgressObserver) Process(ctx context.Context, segments []rangedloop.Segment) error
Process is called repeatedly with batches of segments.
func (*ProgressObserver) Report ¶
func (progress *ProgressObserver) Report()
Report reports the current progress.
type SegmentSizes ¶
SegmentSizes verifies segments table plain_offset and plain_size.
func (*SegmentSizes) Finish ¶ added in v1.80.3
func (verify *SegmentSizes) Finish(context.Context) error
Finish is called after all segments are processed by all observers.
func (*SegmentSizes) Fork ¶ added in v1.80.3
func (verify *SegmentSizes) Fork(context.Context) (rangedloop.Partial, error)
Fork creates a Partial to process a chunk of all the segments. It is called after Start. It is not called concurrently.
func (*SegmentSizes) Join ¶ added in v1.80.3
func (verify *SegmentSizes) Join(context.Context, rangedloop.Partial) error
Join is called for each partial returned by Fork.
func (*SegmentSizes) Process ¶ added in v1.80.3
func (verify *SegmentSizes) Process(ctx context.Context, segments []rangedloop.Segment) error
Process is called repeatedly with batches of segments.