ArchiveCopySliceResult
Namespace: Meshmakers.Octo.Runtime.Contracts.StreamData
What happened to one slice of a native copy. The bot writes these into the dump manifest and the job log.
public record ArchiveCopySliceResult : IEquatable<ArchiveCopySliceResult>
Inheritance Object → ArchiveCopySliceResult
Implements IEquatable<ArchiveCopySliceResult>
Properties
Slice
The slice; ArchiveCopySlice.RowCount is the number counted before the dump.
public ArchiveCopySlice Slice { get; set; }
Property Value
Status
ArchiveCopySliceStatus.Failed for a slice that did not copy (store unreachable, wrong key, rows rejected on load). A difference between the counted and the copied rows of a dump is no failure — the tenant stays online, the open bucket changes while the copy runs — it is reported in ArchiveCopySliceResult.CopiedRows and ArchiveCopySliceResult.Message.
public ArchiveCopySliceStatus Status { get; set; }
Property Value
CopiedRows
Rows the COPY statement reported (COPY TO: written, COPY FROM: success_count).
public long CopiedRows { get; set; }
Property Value
ErrorRows
Rows a load rejected (error_count); always 0 for a dump.
public long ErrorRows { get; set; }
Property Value
Duration
Wall-clock time of the statement.
public TimeSpan Duration { get; set; }
Property Value
Message
Redacted text: the failure reason of a failed slice, or a warning on a succeeded one (counted and copied rows differ). Implementations pass every text that may echo the statement through ArchiveCopyStagingLocation.Scrub(String); it never contains a key, secret or SAS token.
public string Message { get; set; }
Property Value
IsSuccess
public bool IsSuccess { get; }
Property Value
RowCountDifference
Copied minus counted rows; 0 when the slice holds exactly what was counted.
public long RowCountDifference { get; }
Property Value
Constructors
ArchiveCopySliceResult(ArchiveCopySlice, ArchiveCopySliceStatus, Int64, Int64, TimeSpan, String)
What happened to one slice of a native copy. The bot writes these into the dump manifest and the job log.
public ArchiveCopySliceResult(ArchiveCopySlice Slice, ArchiveCopySliceStatus Status, long CopiedRows, long ErrorRows, TimeSpan Duration, string Message)
Parameters
Slice ArchiveCopySlice
The slice; ArchiveCopySlice.RowCount is the number counted before the dump.
Status ArchiveCopySliceStatus
ArchiveCopySliceStatus.Failed for a slice that did not copy (store unreachable, wrong key, rows
rejected on load). A difference between the counted and the copied rows of a dump is no failure — the
tenant stays online, the open bucket changes while the copy runs — it is reported in
ArchiveCopySliceResult.CopiedRows and ArchiveCopySliceResult.Message.
CopiedRows Int64
Rows the COPY statement reported (COPY TO: written, COPY FROM: success_count).
ErrorRows Int64
Rows a load rejected (error_count); always 0 for a dump.
Duration TimeSpan
Wall-clock time of the statement.
Message String
Redacted text: the failure reason of a failed slice, or a warning on a succeeded one (counted and
copied rows differ). Implementations pass every text that may echo the statement through
ArchiveCopyStagingLocation.Scrub(String); it never contains a key, secret or SAS token.