-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Curator shouldn't die when there is no data to delete #1311
Comments
This is extremely unusual. I wonder if it is Docker-specific. It should terminate. It should not loop. It has never looped in any other environment I’ve run Curator in. In fact, my CI tests would have caught that. Do you have a wrapper script that is simply calling Curator repeatedly? There is already a flag that should address the empty list issue, and that is |
I can imagine that it is specific to Docker or Nomad rather, yes, as I have not seen this behaviour before either. My Dockerfile is simply this:
I have seen that Nomad has restarted the image 2 times, making it 3 runs in total and I was wondering if that messed up the logs but I see the error message 4 times in there, so the numbers don't match (assuming that our Nomad is not missing logs - I'm suspecting something like this). I will try that Thank you lots! |
I considered making it the default behavior, but there are times when an empty list is not expected. It should be an error in such cases. The flag allows you to bypass it. |
I'm closing the ticket because I assume that the repetetiveness of the logs was maybe/probably caused by Nomad, and the flag is going to solve the other issue. Thank you! |
To submit a bug or report an issue
I am running curator in Docker. The first action in my config is trying to delete data for which there are currently no indices in my elasticsearch. Curator considers this an error and executes the same action repeatedly, then dies without processing the rest of my actions.yml.
Expected Behavior
I expect curator to log that the action didn't delete data, and then proceed with the other actions.
Actual Behavior
Curator repeatedly tried to perform the "faulty" action no. 1 and then exited, without processing the remaining actions (actions 2 + 3).
Steps to Reproduce the Problem
actions.yaml:
config.yml:
Specifications
Detailed Description
Curator got stuck in this loop:
and then died without any further logs.
The text was updated successfully, but these errors were encountered: