Closed sj26 closed 7 years ago
+1 on the fix. But I'm wondering if we are introducing risk by removing lhmn_
all together when the intention of until
is to remove lhma_
with the specified date range only.
Yeah I was wondering that too, @taoza, but this is generated duplicate data, not canonical data:
should just be duplicated data in the table so should be safe to delete
@sj26 Any chance the Lhm.cleanup is triggered while an online migration is in process and lhmn_
is being used to make copy?
@tguo sure, but if you're running your migrations in multiple places then I think you have bigger problems.
I'll close this one if there's no movement. :-)
When running an Lhm.cleanup with a range it tries to strptime every table name, but if there are unswitched new tables then it fails:
This patch includes the table in cleanup over a time range. We can't really date this table, so can't apply the range logic, but it should just be duplicated data in the table so should be safe to delete.