Update data stream deprecations warnings to new format and filter searchable snapshots from response#118562
Conversation
94db41c to
fdfcc44
Compare
ba12172 to
e02283f
Compare
|
Pinging @elastic/es-data-management (Team:Data Management) |
...precation/src/main/java/org/elasticsearch/xpack/deprecation/DataStreamDeprecationChecks.java
Outdated
Show resolved
Hide resolved
...precation/src/main/java/org/elasticsearch/xpack/deprecation/DataStreamDeprecationChecks.java
Outdated
Show resolved
Hide resolved
…al-migration-info-for-ds-reindex
…al-migration-info-for-ds-reindex
|
Note to self: Add on hiding searchable snapshots from the deprecations API (DS and regular index) and from the migrations API |
| return new DeprecationIssue( | ||
| DeprecationIssue.Level.CRITICAL, | ||
| "Old data stream with a compatibility version < 8.0", | ||
| "Old data stream with a compatibility version < 9.0", |
There was a problem hiding this comment.
I have updated the wording here. Is this correct for 9.0 (Main)? I'm guessing it will need changing back for the backport?
There was a problem hiding this comment.
Yeah for main it is correct (for now -- who knows what will be correct when we actually get to 10.0), and for 8.x it'll need to read < 8.0.
| } | ||
|
|
||
| private static boolean creationVersionBeforeMinimumWritableVersion(IndexMetadata metadata) { | ||
| return metadata.getCreationVersion().before(MINIMUM_WRITEABLE_VERSION_AFTER_UPGRADE); |
There was a problem hiding this comment.
Previously this was onOrBefore but I think before is correct here in that you can write to the minimum version so should not result in a warning or migration?
|
Hi @lukewhiting, I've created a changelog YAML for you. |
|
@masseyke @parkertimmins Have pushed up the changes we discussed yesterday RE @dakrone asking us to filter snapshots and centralising the predicate. |
…al-migration-info-for-ds-reindex
...in/migrate/src/main/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamAction.java
Outdated
Show resolved
Hide resolved
…al-migration-info-for-ds-reindex
…al-migration-info-for-ds-reindex
…rchable snapshots from response (elastic#118562) * Update data stream deprecations warnings to new format * Add reindex_required flag to index version deprecation notice response * PR Changes * Move all deprecation checks to use a shared predicate which also excludes snapshots * Update docs/changelog/118562.yaml * Tests for excluding snapshots * PR Changes - Remove leftover comment (cherry picked from commit 5487927)
…er sea… (#119097) * Update data stream deprecations warnings to new format and filter searchable snapshots from response (#118562) * Update data stream deprecations warnings to new format * Add reindex_required flag to index version deprecation notice response * PR Changes * Move all deprecation checks to use a shared predicate which also excludes snapshots * Update docs/changelog/118562.yaml * Tests for excluding snapshots * PR Changes - Remove leftover comment (cherry picked from commit 5487927) * Update docs/changelog/119097.yaml
This pull request includes changes to the
DataStreamDeprecationChecksclass and it's corresponding test class to implement the metadata format requested by Kibana to assist in making the cluster upgrade process smoother.It also makes the following smaller changes:
reindex_requiredflag to the non Data Streams index migration warning.