elasticsearch/docs/changelog/126840.yaml
Niels Bauman 5383f0fcdf
Fix PolicyStepsRegistry cache concurrency issue (#126840)
The following order of events was possible:
- An ILM policy update cleared `cachedSteps`
- ILM retrieves the step definition for an index, this populates `cachedSteps` with the outdated policy
- The updated policy is put in `lifecyclePolicyMap`

Any subsequent cache retrievals will see the old step definition.

By clearing `cachedSteps` _after_ we update `lifecyclePolicyMap`, we
ensure eventual consistency between the policy and the cache.

Fixes #118406
2025-04-16 13:58:12 +02:00

6 lines
112 B
YAML

pr: 126840
summary: Fix `PolicyStepsRegistry` cache concurrency issue
area: ILM+SLM
type: bug
issues:
- 118406