-
Notifications
You must be signed in to change notification settings - Fork 140
CBG-4213: add attachment migration api #7183
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ff9dc68
CBG-4213: add attachment migration api
gregns1 9ddf16c
tidy up
gregns1 788ae51
fix api docs lint error
gregns1 108e9d9
Update db/background_mgr_attachment_migration.go
gregns1 83e0116
Update db/background_mgr_attachment_migration.go
gregns1 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Copyright 2024-Present Couchbase, Inc. | ||
# | ||
# Use of this software is governed by the Business Source License included | ||
# in the file licenses/BSL-Couchbase.txt. As of the Change Date specified | ||
# in that file, in accordance with the Business Source License, use of this | ||
# software will be governed by the Apache License, Version 2.0, included in | ||
# the file licenses/APL2.txt. | ||
parameters: | ||
- $ref: ../../components/parameters.yaml#/db | ||
post: | ||
summary: Manage a attachment migration operation | ||
description: |- | ||
This allows a new attachment migration operation to be done on the database, or to stop an existing running attachment migration operation. | ||
Attachment Migration is a single node process and can only one node can be running it at one point. | ||
Required Sync Gateway RBAC roles: | ||
* Sync Gateway Architect | ||
parameters: | ||
- name: action | ||
in: query | ||
description: Defines whether the an attachment migration operation is being started or stopped. | ||
schema: | ||
type: string | ||
default: start | ||
enum: | ||
- start | ||
- stop | ||
- name: reset | ||
in: query | ||
description: |- | ||
This forces a fresh attachment migration start instead of trying to resume the previous failed migration operation. | ||
schema: | ||
type: boolean | ||
responses: | ||
'200': | ||
description: Started or stopped compact operation successfully | ||
'400': | ||
$ref: ../../components/responses.yaml#/request-problem | ||
'404': | ||
$ref: ../../components/responses.yaml#/Not-found | ||
'503': | ||
description: Cannot start attachment migration due to another migration operation still running. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../components/schemas.yaml#/HTTP-Error | ||
tags: | ||
- Database Management | ||
operationId: post_db-_attachment_migration | ||
get: | ||
summary: Get the status of the most recent attachment migration operation | ||
description: |- | ||
This will retrieve the current status of the most recent attachment migration operation. | ||
Required Sync Gateway RBAC roles: | ||
* Sync Gateway Architect | ||
responses: | ||
'200': | ||
description: Attachment migration status retrieved successfully | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../components/schemas.yaml#/Attachment-Migration-status | ||
'400': | ||
$ref: ../../components/responses.yaml#/request-problem | ||
'404': | ||
$ref: ../../components/responses.yaml#/Not-found | ||
tags: | ||
- Database Management | ||
operationId: get_db-_attachment_migration |
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.
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.