-
Notifications
You must be signed in to change notification settings - Fork 101
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
Conversation
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 for this! Here's some comments and questions:
|
||
export class UrlRepositorySettings { | ||
url: string | ||
supported_protocols?: string |
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.
Should this be string[]
?
} | ||
|
||
export class GoogleCloudRepositorySettings extends BlobStoreSettings { | ||
bucket?: string |
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.
Missing the client
property
e8b46ec
to
fa6cfb3
Compare
Following you can find the validation results for the APIs you have changed.
You can validate these APIs yourself by using the |
I addressed your comments. Can you review the latest changes? |
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.
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 */ |
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.
Is there a reason we switched the @aliases
and the non-alias property name from the previous types?
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.
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.
Hi, I was wondering what the timeline is to merge this PR? |
@pquentin Yes, I believe we can close this. |
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