-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Default gateway.auto_import_dangling_indices to false #59302
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
Default gateway.auto_import_dangling_indices to false #59302
Conversation
Pinging @elastic/es-distributed (:Distributed/Distributed) |
@elasticmachine run elasticsearch-ci/oss-distro-docs |
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.
Added a suggested revision to the release notes, but LGTM otherwise. Thanks!
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.
Since this is a breaking change I think we should document it in docs/reference/migration/migrate_7_9.asciidoc
rather than docs/reference/release-notes/7.9.asciidoc
. I suppose we can do both, but that seems excessive to me.
That's a good call @DaveCTurner 👍 Thanks for pointing out that change. |
Thanks @DaveCTurner. I didn't feel entirely comfortable with completely removing the content from the release notes, so I abbreviated it and pointed it to the migration notes. |
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.
Left some suggestions
=== Settings changes | ||
|
||
[[deprecate_auto_import_dangling_indices]] | ||
.Automatically importing dangling indices is deprecated. |
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.
Suggest this, since deprecating something isn't itself a breaking change:
.Automatically importing dangling indices is deprecated. | |
.Automatically importing dangling indices is disabled by default. |
[%collapsible] | ||
==== | ||
*Details* + | ||
<<dangling-indices,Dangling indices>> will no longer be imported |
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.
I think it'd help to move some things around here: IMO the Details
section describes the change and the Impact
tells the user what to do about it. How about this:
diff --git a/docs/reference/migration/migrate_7_9.asciidoc b/docs/reference/migration/migrate_7_9.asciidoc
index e60c4f3588d..acfd11fc38b 100644
--- a/docs/reference/migration/migrate_7_9.asciidoc
+++ b/docs/reference/migration/migrate_7_9.asciidoc
@@ -80,16 +80,18 @@ context. For example, for the `processor_conditional` context, use
[%collapsible]
====
*Details* +
-<<dangling-indices,Dangling indices>> will no longer be imported
-automatically by default. A new
-<<dangling-indices-api,Dangling indices API>> is now available, which you
-can use to list, import, or delete. Because importing dangling indices
-automatically into the cluster is unsafe, use the dedicated API instead.
+Automatically importing <<dangling-indices,dangling indices>> into the cluster
+is unsafe and is now disabled by default. This feature will be removed entirely
+in {es} 8.0.0.
*Impact* +
-Automatically importing dangling indices is now deprecated, disabled by
-default, and will be removed in (es) 8.0. If you need to re-enable
-auto-imports, set `gateway.auto_import_dangling_indices` to `true`.
+Use the <<dangling-indices-api,Dangling indices API>> to list, delete or import
+any dangling indices manually.
++
+Alternatively you can enable automatic imports of dangling indices, recovering
+the unsafe behaviour of earlier versions, by setting
+`gateway.auto_import_dangling_indices` to `true`. This setting is deprecated
+and will be removed in {es} 8.0.0. We do not recommend using this setting.
====
//end::notable-breaking-changes[]
|
||
Dangling indices:: | ||
* Automatically importing dangling indices is now deprecated, disabled by | ||
default, and will be removed in (es) 8.0. See the |
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.
I think you meant this:
default, and will be removed in (es) 8.0. See the | |
default, and will be removed in {es} 8.0. See the |
c4f08d1
to
af7a176
Compare
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.
LGTM
Part of elastic#48366. Now that there is a dedicated API for dangling indices, the auto-import behaviour can default to off.
Co-authored-by: Adam Locke <[email protected]>
Move most of the breaking changes regarding dangling indices in the 7.9 release notes to the 7.9 migration doc. Abbreviate the release ntoes content and point to the migration notes instead.
af7a176
to
6eb2c5f
Compare
Cherry-picked to |
Backport of #58898.
Part of #48366. Now that there is a dedicated API for dangling indices, the auto-import behaviour can default to off. Also add a note to the breaking changes for 7.9.0.