PlanOptimize is being checked far too frequently. This PR is the simplest change that can be made in order to ensure that PlanOptimize is not being ran too much. To alleviate the frequency I've added a lastWrite parameter to PlanOptimize and added an additional test that mocks the edge cause out in the wild that led to this PR.
Previously in test cases for PlanOptimize I was not checked to see if certain cases would be picked up by Plan I've adjusted a few of the existing test cases after modifying Plan and PlanOptimize to have the same lastWrite time.
(cherry picked from commit
|
||
---|---|---|
.. | ||
influx | ||
influx_inspect | ||
influx_tools | ||
influxd | ||
integration_config_test.go | ||
integration_test.go | ||
parse.go |