Restrict ILM frozen phase to searchable snapshot actions only#70158
Restrict ILM frozen phase to searchable snapshot actions only#70158dakrone merged 3 commits intoelastic:masterfrom
Conversation
This commit changes the frozen phase within ILM in the following ways: - The `searchable_snapshot` action now no longer takes a `storage` parameter. The storage type is determined by the phase within which it is invoked (shared cache for frozen and full copy for everything else). - The frozen phase in ILM now no longer allows *any* actions other than `searchable_snapshot` - If a frozen phase is provided, it *must* include a `searchable_snapshot` action. These changes may seem breaking, but since they are intended to go back to 7.12 which has not been released yet, they are not truly breaking changes.
|
Pinging @elastic/es-core-features (Team:Core/Features) |
| boolean bwc_tests_enabled = false | ||
| String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/70158" /* place a PR link here when committing bwc changes */ |
There was a problem hiding this comment.
This is required because I am removing the serialization for 7.12 in a weird way (we don't usually remove things like this), once this has been backported all the way back to 7.12 I will re-enable BWC
andreidan
left a comment
There was a problem hiding this comment.
LGTM, thanks for implementing this Lee
| } | ||
| phases.put(phase, new Phase(phase, after, actions)); | ||
| } | ||
| // Add a frozen phase if neither the hot nor cold phase contains a searchable snapshot action |
There was a problem hiding this comment.
What is the connection between the hot/cold actions and the frozen phase? We're still able to have searchable_snapshot actions in all phases as far as I understand
There was a problem hiding this comment.
It's mostly because we'd have to use a consistent repository name (or else validation would fail), we have enough validation that this gets more and more complex, and this doesn't have to generate all possible valid lifecycles, just a random one.
| } | ||
|
|
||
| /** | ||
| * Require that all "frozen" phases configured in a policy have a searchable snapshot action. |
There was a problem hiding this comment.
uber nit :) but this implies the possible presence of multiple frozen phases in one policy and it might be confusing
There was a problem hiding this comment.
Good point, I changed this to not imply that.
…c#70158) This commit changes the frozen phase within ILM in the following ways: - The `searchable_snapshot` action now no longer takes a `storage` parameter. The storage type is determined by the phase within which it is invoked (shared cache for frozen and full copy for everything else). - The frozen phase in ILM now no longer allows *any* actions other than `searchable_snapshot` - If a frozen phase is provided, it *must* include a `searchable_snapshot` action. These changes may seem breaking, but since they are intended to go back to 7.12 which has not been released yet, they are not truly breaking changes.
…c#70158) This commit changes the frozen phase within ILM in the following ways: - The `searchable_snapshot` action now no longer takes a `storage` parameter. The storage type is determined by the phase within which it is invoked (shared cache for frozen and full copy for everything else). - The frozen phase in ILM now no longer allows *any* actions other than `searchable_snapshot` - If a frozen phase is provided, it *must* include a `searchable_snapshot` action. These changes may seem breaking, but since they are intended to go back to 7.12 which has not been released yet, they are not truly breaking changes.
With elastic#70158 (master), elastic#70170 (7.x), and elastic#70171 (7.12) merged, we can now re-enable backwards compatibilty tests on master and 7.x.
The action was recently removed from the list of acceptable actions (elastic#70158), the test shouldn't use it any more.
The action was recently removed from the list of acceptable actions (#70158), the test shouldn't use it any more.
The action was recently removed from the list of acceptable actions (elastic#70158), the test shouldn't use it any more.
The action was recently removed from the list of acceptable actions (#70158), the test shouldn't use it any more.
…70158) (#70171) * Restrict ILM frozen phase to searchable snapshot actions only (#70158) This commit changes the frozen phase within ILM in the following ways: - The `searchable_snapshot` action now no longer takes a `storage` parameter. The storage type is determined by the phase within which it is invoked (shared cache for frozen and full copy for everything else). - The frozen phase in ILM now no longer allows *any* actions other than `searchable_snapshot` - If a frozen phase is provided, it *must* include a `searchable_snapshot` action. These changes may seem breaking, but since they are intended to go back to 7.12 which has not been released yet, they are not truly breaking changes. * Fix compilation
…ic#70179) With elastic#70158 (master), elastic#70170 (7.x), and elastic#70171 (7.12) merged, we can now re-enable backwards compatibilty tests on master and 7.x.
This commit changes the frozen phase within ILM in the following ways:
searchable_snapshotaction now no longer takes astorageparameter. The storage type isdetermined by the phase within which it is invoked (shared cache for frozen and full copy for
everything else).
searchable_snapshotsearchable_snapshotaction.These changes may seem breaking, but since they are intended to go back to 7.12 which has not been
released yet, they are not truly breaking changes.