If OptimizerKeeper reset task status illegally(SUCCESS -> PLAN), optimizer may not be released or touched. In the meantime, the optimizer is restart, then the remaning task will never be executed.
Close #3110 .
Brief change log
How was this patch tested?
[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
[ ] Add screenshots for manual tests if appropriate
[ ] Run test locally before making a pull request
Documentation
Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
Why are the changes needed?
If OptimizerKeeper reset task status illegally(SUCCESS -> PLAN), optimizer may not be released or touched. In the meantime, the optimizer is restart, then the remaning task will never be executed. Close #3110 .
Brief change log
How was this patch tested?
[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
[ ] Add screenshots for manual tests if appropriate
[ ] Run test locally before making a pull request
Documentation