-
Notifications
You must be signed in to change notification settings - Fork 360
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
Find expired and active commits #2069
Changes from 29 commits
d466eb4
0abc5c6
47f44f6
431c207
3763a54
3876eff
2ddf880
40ee31f
d37ec3a
de1eef4
bb5823b
499667f
494239d
8cb41dd
196d946
edff49c
0d1db93
8d1b96f
88edd93
c8de6a5
6de0637
759f5fe
b18aca6
63ff3b0
3acef2f
d02f0c7
7ce29bc
a7c306a
b5e6447
111cf0c
ea99529
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -817,6 +817,48 @@ components: | |
- checksum | ||
- size_bytes | ||
|
||
GarbageCollectionPrepareRequest: | ||
type: object | ||
properties: | ||
previous_run_id: | ||
type: string | ||
description: run id of a previous successful GC job | ||
example: 64eaa103-d726-4a33-bcb8-7c0b4abfe09e | ||
|
||
GarbageCollectionPrepareResponse: | ||
type: object | ||
properties: | ||
run_id: | ||
type: string | ||
description: a unique identifier generated for this GC job | ||
example: 64eaa103-d726-4a33-bcb8-7c0b4abfe09e | ||
required: | ||
- run_id | ||
|
||
GarbageCollectionRule: | ||
type: object | ||
properties: | ||
branch_id: | ||
type: string | ||
retention_days: | ||
type: integer | ||
required: | ||
- branch_id | ||
- retention_days | ||
|
||
GarbageCollectionRules: | ||
type: object | ||
properties: | ||
default_retention_days: | ||
type: integer | ||
branches: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/GarbageCollectionRule' | ||
required: | ||
- default_retention_days | ||
- branches | ||
|
||
paths: | ||
/setup_lakefs: | ||
post: | ||
|
@@ -2829,7 +2871,80 @@ paths: | |
$ref: "#/components/responses/NotFound" | ||
default: | ||
$ref: "#/components/responses/ServerError" | ||
/repositories/{repository}/gc/rules: | ||
parameters: | ||
- in: path | ||
name: repository | ||
required: true | ||
schema: | ||
type: string | ||
get: | ||
tags: | ||
- retention | ||
operationId: getGarbageCollectionRules | ||
responses: | ||
nopcoder marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing 404 for missing repo. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
200: | ||
description: gc rule list | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GarbageCollectionRules" | ||
401: | ||
$ref: "#/components/responses/Unauthorized" | ||
404: | ||
$ref: "#/components/responses/NotFound" | ||
default: | ||
$ref: "#/components/responses/ServerError" | ||
post: | ||
tags: | ||
- retention | ||
operationId: set garbage collection rules | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GarbageCollectionRules" | ||
responses: | ||
nopcoder marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing 404. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
204: | ||
description: set garbage collection rules successfully | ||
401: | ||
$ref: "#/components/responses/Unauthorized" | ||
404: | ||
$ref: "#/components/responses/NotFound" | ||
default: | ||
$ref: "#/components/responses/ServerError" | ||
|
||
/repositories/{repository}/gc/prepare_commits: | ||
parameters: | ||
- in: path | ||
name: repository | ||
required: true | ||
schema: | ||
type: string | ||
post: | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GarbageCollectionPrepareRequest" | ||
tags: | ||
- retention | ||
operationId: prepareGarbageCollectionCommits | ||
summary: save lists of active and expired commits for garbage collection | ||
responses: | ||
201: | ||
description: paths to commit dataset | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/GarbageCollectionPrepareResponse" | ||
401: | ||
$ref: "#/components/responses/Unauthorized" | ||
404: | ||
$ref: "#/components/responses/NotFound" | ||
default: | ||
$ref: "#/components/responses/ServerError" | ||
/healthcheck: | ||
get: | ||
operationId: healthCheck | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
What's the relation between a rule's
retention_days
and the globaldefault_retention_days
?