Documentation
¶
Overview ¶
Package progress counts what the tests assert on in the progress files of a data export and a data import, read the way the exporter and the importer read them.
Index ¶
- func PlanPath(path string) string
- func ReadExport(path string) (*exporter.ProgressView, error)
- func ReadManifest(dir string) (*manifest.Manifest, error)
- type Import
- func (p *Import) Complete() int
- func (p *Import) InflightStreamParts() int
- func (p *Import) PushedRows() uint64
- func (p *Import) SentWindow() uint64
- func (p *Import) Started() int
- func (p *Import) StreamTraceBoundViolations(m *manifest.Manifest) []string
- func (p *Import) StreamTraceDuplicates() uint64
- func (p *Import) StreamTracePushed() uint64
- func (p *Import) StreamTraceRowsOnce(m *manifest.Manifest) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadExport ¶
func ReadExport(path string) (*exporter.ProgressView, error)
ReadExport reads the export progress file at path with exporter.ReadProgress; a missing one is (nil, nil).
Types ¶
type Import ¶
type Import struct {
importer.ProgressView
}
Import is an import progress file as importer.ReadProgress reads it.
func ReadImport ¶
ReadImport reads the import progress file at path with importer.ReadProgress; a missing one is (nil, nil).
func (*Import) InflightStreamParts ¶
InflightStreamParts counts the stream and trace parts in flight.
func (*Import) PushedRows ¶
PushedRows sums the rows every run pushed.
func (*Import) SentWindow ¶
SentWindow sums the rows of the started CSV items sent after their cursors and not acknowledged: the rows a resume lists as ambiguous.
func (*Import) StreamTraceBoundViolations ¶
StreamTraceBoundViolations checks the stream and trace rows every run pushed per (catalog, group) against one uninterrupted import of the plan from the artifact m: every row was pushed, and no more rows above them than recorded as possible duplicates of that group. A CSV artifact pushes every row it acknowledged once, so its counts must be equal. It lists every group that breaks the bound, none when all hold. The stage is left out: the plan keys carry the source stage and the pushed counts the target stage, which differ when the target maps the stage.
func (*Import) StreamTraceDuplicates ¶
StreamTraceDuplicates sums the stream and trace rows recorded as pushed again, which may be stored twice.
func (*Import) StreamTracePushed ¶
StreamTracePushed sums the stream and trace rows every run pushed.
func (*Import) StreamTraceRowsOnce ¶
StreamTraceRowsOnce is how many stream and trace rows one uninterrupted import of the plan pushes from the artifact m: per planned work item, the rows of its chosen sources (of a native shard, its parts' rows; of a CSV shard, the rows of its files; of a segment item, the source's).