Skip to content
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

Remove deprecated S3 settings #24445

Merged
merged 8 commits into from
May 11, 2017
Merged

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented May 2, 2017

These settings are deprecated in 5.5. This change removes them for 6.0.

These settings are deprecated in 5.5. This change removes them for 6.0.
Copy link
Member

@dadoonet dadoonet 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 some minor comments. LGTM and nice to see all that code lighter than it was!

If you plan to add something in the breaking changes, you can may be take some of the stuff I initially wrote at https://github.com/elastic/elasticsearch/pull/23276/files#diff-c710699b84701013d83a5fe7ddc9a6d3.

@@ -81,11 +81,11 @@

/** The number of retries to use when an s3 request fails. */
static final Setting.AffixSetting<Integer> MAX_RETRIES_SETTING = Setting.affixKeySetting(PREFIX, "max_retries",
key -> Setting.intSetting(key, S3Repository.Repositories.MAX_RETRIES_SETTING, 0, Property.NodeScope));
key -> Setting.intSetting(key, 3, 0, Property.NodeScope));
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should default to ClientConfiguration.DEFAULT_RETRY_POLICY.getMaxErrorRetry() instead?
Or to PredefinedRetryPolicies.DEFAULT_MAX_ERROR_RETRY?

@@ -58,149 +58,67 @@
* NOTE: These are legacy settings. Use the named client config settings above.
*/
public interface Repositories {
Copy link
Member

Choose a reason for hiding this comment

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

Not part of this change but you can remove public here. Also for public static final String TYPE = "s3";

basePath = basePath.substring(1);
deprecationLogger.deprecated("S3 repository base_path trimming the leading `/`, and " +
"leading `/` will not be supported for the S3 repository in future releases");
}
this.basePath = new BlobPath().add(basePath);
} else {
this.basePath = BlobPath.cleanPath();
Copy link
Member

Choose a reason for hiding this comment

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

Not related to this change but method public static <T> T getValue(...) at the end of this class can become package private.

@rjernst
Copy link
Member Author

rjernst commented May 9, 2017

Thanks for the review @dadoonet. I pushed new commits with cleanups as you suggested, and also migration docs. Let me know if you are happy with the docs.

@dadoonet
Copy link
Member

dadoonet commented May 9, 2017

Great! Thanks!

@rjernst
Copy link
Member Author

rjernst commented May 9, 2017

@elasticmachine retest this please

@rjernst rjernst merged commit 0789a74 into elastic:master May 11, 2017
@rjernst rjernst deleted the remove_s3_deprecations branch May 11, 2017 03:12
@clintongormley clintongormley changed the title S3 Repository: Remove deprecated settings Remove deprecated S3 settings Jun 6, 2017
@clintongormley clintongormley added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs and removed :Plugin Repository S3 labels Feb 14, 2018
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Feb 24, 2021
We removed the global `repositories.s3.base_path` setting in 6.0 but it
is still mentioned in the docs for the S3 repository plugin. This commit
removes it from the docs.

Relates elastic#24445
DaveCTurner added a commit that referenced this pull request Feb 24, 2021
We removed the global `repositories.s3.base_path` setting in 6.0 but it
is still mentioned in the docs for the S3 repository plugin. This commit
removes it from the docs.

Relates #24445
DaveCTurner added a commit that referenced this pull request Feb 24, 2021
We removed the global `repositories.s3.base_path` setting in 6.0 but it
is still mentioned in the docs for the S3 repository plugin. This commit
removes it from the docs.

Relates #24445
DaveCTurner added a commit that referenced this pull request Feb 24, 2021
We removed the global `repositories.s3.base_path` setting in 6.0 but it
is still mentioned in the docs for the S3 repository plugin. This commit
removes it from the docs.

Relates #24445
DaveCTurner added a commit that referenced this pull request Feb 24, 2021
We removed the global `repositories.s3.base_path` setting in 6.0 but it
is still mentioned in the docs for the S3 repository plugin. This commit
removes it from the docs.

Relates #24445
DaveCTurner added a commit that referenced this pull request Feb 24, 2021
We removed the global `repositories.s3.base_path` setting in 6.0 but it
is still mentioned in the docs for the S3 repository plugin. This commit
removes it from the docs.

Relates #24445
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>breaking :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v6.0.0-alpha2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants