opensearch-project / index-management

🗃 Automate periodic data operations, such as deleting indices at a certain age or performing a rollover at a certain size
https://opensearch.org/docs/latest/im-plugin/index/
Apache License 2.0
52 stars 107 forks source link

[BUG] IndexActionMetadata step fields are not updated upon timeout of rollover #1132

Open sarthakaggarwal97 opened 3 months ago

sarthakaggarwal97 commented 3 months ago

What is the bug? Whenever the action is timed out, only the field info.message is updated. If in the previous run, the conditions for the rollover were not met, it can be confusing to suggest that the rollover action still was performed even if the conditions were not met.

"step": {
"name": "attempt_rollover",
"start_time": XXXXXXXX,
"step_status": "condition_not_met"
},
"info": {
"message": "Action timed out"
},

What is the expected behavior? If the action time out happened, it should update the step.status and step.name as well.

Do you have any additional context? Code Pointer where we only update info field.

dblock commented 2 weeks ago

Catch All Triage - 1 2 3 4 5