-
Notifications
You must be signed in to change notification settings - Fork 35
feat(status): expose row-copy progress as a structured field on Progress #1220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aparajon
wants to merge
7
commits into
main
Choose a base branch
from
armand/progress-copy-field
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8f5b9a2
feat(status): expose row-copy progress as a structured field on Progress
aparajon 97fd3af
fix(status): derive Copy from settled row counts so it reconciles wit…
aparajon 8672498
fix(status): report one copy measure in the log block and the API
aparajon 515ae34
test(migration): assert the checkpoint status row on settled rows
aparajon ce54a2c
test(status): pin the copier row in every runner and refresh the copi…
aparajon 1fc647e
fix(datasync): report an unmeasured ETA when the copier is not yet pu…
aparajon 8003a8e
fix(table): checkpoint the optimistic chunker's settled row count
aparajon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| // Package copiertest provides a Copier stub for tests of the runners that | ||
| // report copier state, so every runner package shares one definition. It | ||
| // lives beside the copier rather than in testutils because the copier's own | ||
| // tests import testutils, which a stub there would turn into an import cycle. | ||
| package copiertest | ||
|
|
||
| import ( | ||
| "github.com/block/spirit/pkg/copier" | ||
| "github.com/block/spirit/pkg/status" | ||
| "github.com/block/spirit/pkg/throttler" | ||
| ) | ||
|
|
||
| // Stub answers the read-only status methods of copier.Copier from its | ||
| // fields, and reports a throttler that never throttles. Every other method is | ||
| // inherited from the embedded nil interface and panics if reached, which is | ||
| // the point: a test that needs it is exercising more than status reporting. | ||
| type Stub struct { | ||
| copier.Copier | ||
| ETA status.ETA | ||
| Copy status.CopyProgress | ||
| Chunk uint64 | ||
| } | ||
|
|
||
| func (s Stub) GetETA() string { return s.ETA.String() } | ||
| func (s Stub) GetETAState() status.ETA { return s.ETA } | ||
| func (s Stub) GetProgress() string { return s.Copy.String() } | ||
| func (s Stub) CopyProgress() status.CopyProgress { return s.Copy } | ||
| func (s Stub) ChunkSize() uint64 { return s.Chunk } | ||
| func (s Stub) GetThrottler() throttler.Throttler { return &throttler.Noop{} } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.