-
Notifications
You must be signed in to change notification settings - Fork 362
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
Long running dump and restore capability #6975
Conversation
♻️ PR Preview 86ad171 has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. Not blocking, but please see comments.
api/swagger.yml
Outdated
tags: | ||
- repositories | ||
operationId: restoreStatus | ||
summary: Restore repository (tags, commits, branches) from object store |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
summary: Restore repository (tags, commits, branches) from object store | |
summary: Status of a restore request |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not done?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think I updated and override the doc version
pkg/api/controller_test.go
Outdated
// pullRestoreStatus polls the restore status endpoint until the restore is complete or times out. | ||
// test will fail in case of error. | ||
// will return nil in case of timeout. | ||
func pullRestoreStatus(t *testing.T, clt apigen.ClientWithResponsesInterface, repo string, taskID string) *apigen.RepositoryRestoreStatus { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func pullRestoreStatus(t *testing.T, clt apigen.ClientWithResponsesInterface, repo string, taskID string) *apigen.RepositoryRestoreStatus { | |
func pollRestoreStatus(t *testing.T, clt apigen.ClientWithResponsesInterface, repo string, taskID string) *apigen.RepositoryRestoreStatus { |
(also in other places)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still occurrences of "pull" instead of "poll".
Co-authored-by: Yoni <yoni.augarten@treeverse.io>
Co-authored-by: Yoni <yoni.augarten@treeverse.io>
Co-authored-by: Yoni <yoni.augarten@treeverse.io>
29f6dc4
to
c64f086
Compare
New dump and restore refs API
A new API for dumping and restoring refs. The API allows users to submit requests and then pull the status of the task and the complete information about the request once it is finished.
The new API is used by the
lakectl refs-dump
andlakectl refs-restore
commands.The new API offers a long running operations without the risk of timeout dropping the request.
Close #6527