Skip to content

Conversation

@dadoonet
Copy link
Contributor

Global repositories settings we were able to set in elasticsearch config file under repositories.s3
name space are now deprecated and will be removed in master (6.x) - see #23276.

This includes repositories.s3.bucket, repositories.s3.server_side_encryption,
repositories.s3.buffer_size, repositories.s3.max_retries, repositories.s3.use_throttle_retries,
repositories.s3.chunk_size, repositories.s3.compress, repositories.s3.storage_class, repositories.s3.canned_acl,
repositories.s3.base_path and repositories.s3.path_style_access.

We must set those settings per repository instead. Respectively bucket, server_side_encryption, buffer_size,
max_retries, use_throttle_retries, chunk_size, compress, storage_class, canned_acl, base_path and
path_style_access.

Related to #22800

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@dadoonet
Copy link
Contributor Author

@rjernst This one is only deprecation. Can you review it please even if you want to hold off #23276?

Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

I left a comment. I didn't do a full review.

Copy link
Member

Choose a reason for hiding this comment

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

You can use ESTestCase#assertSettingDeprecations here.

@dadoonet
Copy link
Contributor Author

@jasontedor I fixed it. It's strange that I had to fix other tests as it seems the assertWarning changed a bit. I'm going to try 5.x branch instead of mine to see if it's a regression introduced in 5.x or only something new in my branch.

@dadoonet
Copy link
Contributor Author

@javanna
Copy link
Member

javanna commented Feb 28, 2017

I have seen the same failure quite a few times today on my box (5.x branch)

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

The change LGTM. You will need to update the latest master. See the changes Jason made there today to fix the tests.

@dadoonet dadoonet force-pushed the pr/deprecate-s3-repositories branch from b22af6c to 27d005d Compare March 1, 2017 08:05
@dadoonet
Copy link
Contributor Author

dadoonet commented Mar 1, 2017

Thanks @rjernst!

@jasontedor as you requested the changes, can you review the last changes please? Thanks!

@dadoonet
Copy link
Contributor Author

@jasontedor I'm planning to merge this one hopefully next week. Any blocker on your side? Thanks!

Global repositories settings we were able to set in elasticsearch config file under `repositories.s3`
name space are now deprecated and will be removed in master (6.x).

This includes `repositories.s3.bucket`, `repositories.s3.server_side_encryption`,
`repositories.s3.buffer_size`, `repositories.s3.max_retries`, `repositories.s3.use_throttle_retries`,
`repositories.s3.chunk_size`, `repositories.s3.compress`, `repositories.s3.storage_class`, `repositories.s3.canned_acl`,
`repositories.s3.base_path` and `repositories.s3.path_style_access`.

We must set those settings per repository instead. Respectively `bucket`, `server_side_encryption`, `buffer_size`,
`max_retries`, `use_throttle_retries`, `chunk_size`, `compress`, `storage_class`, `canned_acl`, `base_path` and
`path_style_access`.

Related to elastic#22800
@dadoonet dadoonet force-pushed the pr/deprecate-s3-repositories branch from 27d005d to e8209b8 Compare March 30, 2017 15:49
Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

LGTM.

@dadoonet dadoonet merged commit b900247 into elastic:5.x Mar 30, 2017
@dadoonet dadoonet deleted the pr/deprecate-s3-repositories branch March 30, 2017 16:30
@dadoonet
Copy link
Contributor Author

Thanks @jasontedor

@clintongormley clintongormley added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs and removed :Plugin Repository S3 labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>deprecation :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v5.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants