fix: skip repair RemoveBrokenProperties if already run#61409
Conversation
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
|
I'm wondering if this one-time migration should have just been a background job. Downside of moving it there is that it runs outside the maintenance window. Not sure if that is problematic. |
TBH, I think that might be a better solution, If anyone ever needs to rerun this, it would be easier to remember just to trigger the migration again, which creates a new job. |
maybe the initial query that reads the complete for the re-run possibility, it can be run again with |
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
Summary
The repair step removes null characters from the properties table. The PR which added this also made sure no further entries are inserted with null characters so it should be safe to run once and then skip it for the later upgrades.
The need for this arises from the fact that
valuetypecolumn is compared which does not have an index and should not have it since it's not used anywhere else, but it results in a long scan of the DB whenever the repair step runs.The step is marked expensive but expensive repair steps still run in maintenance mode and cause a long downtime.
It was added in #49528
TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)