Skip to content

Fix snapshot repository definitions #1771

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

Closed
wants to merge 3 commits into from
Closed

Fix snapshot repository definitions #1771

wants to merge 3 commits into from

Conversation

swallez
Copy link
Member

@swallez swallez commented Jun 27, 2022

In the snapshot namespace we only have a (partial) definition of the S3 repository. This PR defines the settings for all repository implementations and groups them in a @non_exhaustive union (plugins can define new snapshot repositories).

Found in elastic/elasticsearch-java#207

Copy link
Contributor

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Here's some comments and questions:


export class UrlRepositorySettings {
url: string
supported_protocols?: string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be string[]?

}

export class GoogleCloudRepositorySettings extends BlobStoreSettings {
bucket?: string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing the client property

@swallez swallez force-pushed the fix-snapshot-repos branch from e8b46ec to fa6cfb3 Compare November 9, 2022 11:37
@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2022

Following you can find the validation results for the APIs you have changed.

API Status Request Response
snapshot.cleanup_repository 🟢 3/3 3/3
snapshot.clone 🟢 5/5 5/5
snapshot.create_repository 🟢 26/26 26/26
snapshot.create 🟢 26/26 26/26
snapshot.delete_repository 🟢 10/10 10/10
snapshot.delete 🟢 20/20 20/20
snapshot.get_repository 🟢 19/19 19/19
snapshot.get 🟢 13/13 13/13
snapshot.repository_analyze 🟠 Missing type Missing type
snapshot.restore 🟢 5/5 5/5
snapshot.status 🟢 2/2 2/2
snapshot.verify_repository 🟢 2/2 2/2

You can validate these APIs yourself by using the make validate target.

@swallez
Copy link
Member Author

swallez commented Nov 9, 2022

I addressed your comments. Can you review the latest changes?

Copy link
Contributor

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, I only had one question:

max_number_of_snapshots?: integer
max_snapshot_bytes_per_sec?: ByteSize
max_restore_bytes_per_sec?: ByteSize
/** @aliases read_only */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we switched the @aliases and the non-alias property name from the previous types?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because some recordings use read_only but the setting name in the ES code is readonly. I couldn't find though in the ES code where that read_only would be accepted.

@steffenvan
Copy link

Hi, I was wondering what the timeline is to merge this PR?

@pquentin
Copy link
Member

Should we close this since #2255 from @JoshMock was merged instead? Or is there still work to do?

@JoshMock
Copy link
Member

@pquentin Yes, I believe we can close this.

@JoshMock JoshMock closed this Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants