Fix ILM expire workers exiting (#20578)

Fix expire workers exiting

Under 2 conditions ILM expire workers would exit, eventually causing all workers to terminate.
This commit is contained in:
Klaus Post 2024-10-23 08:35:37 -07:00 committed by GitHub
parent ed5ed7e490
commit 6abe4128d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ func (es *expiryState) Worker(input <-chan expiryOp) {
traceFn := globalLifecycleSys.trace(oi)
if !oi.TransitionedObject.FreeVersion {
// nothing to be done
return
continue
}
ignoreNotFoundErr := func(err error) error {
@ -367,7 +367,7 @@ func (es *expiryState) Worker(input <-chan expiryOp) {
if ignoreNotFoundErr(err) != nil {
transitionLogIf(es.ctx, err)
traceFn(ILMFreeVersionDelete, nil, err)
return
continue
}
// Remove this free version