Replies: 2 comments 13 replies
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
The problem is that the migration failed in the middle the first time you run it. Unfortunately MySQL does not provide transactional integrity of migrations (I stronly recommend to migrate to Postgres), so if your migration fails in the middle, it is half-done and re-running it will fail. Please restore your database from the backup before and retry the migration (Ideally try it on a staging system first). You might have different problems if you manually modifed your database. Specifically collation id of your task_id/dag_id and other id columns should be You have to make sure that all ids in Airlfow MySQL db have utf8mb3_general_ci collation. if for any reason (like previous historical modifcations), your migraation will fail otherwise on too large index.. |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
2.3.3
What happened
stuck in the middle of
airflow db upgrade
in one of my Airflow’s clusters.I am trying to upgrade from
2.2.3
-->2.3.3
, using MySql.Upgrade failed in
Running upgrade c97c2ab6aa23 -> 4eaab2fe6582, Migrate RTIF to use run_id and map_index
.Actually, it also failed before that (on previous steps) and I had to run some commands manually to proceed until this point. Here is what I have done so far:
The log in this step:
The problem is that the table’s schema now looks like:
Seems like the
execution_date
was dropped fromrendered_task_instance_fields
table. I don't see this column now.To ensure it happened during the migration, I tried to bring up Airflow 2.2.5 in docker - and I see the
execution_date
. Then, I tried to bring up Airflow 2.3.3 in docker - and I DON'T see this column.What you think should happen instead
The migration should succeed smoothly as happened in the previous Airflow upgrades.
How to reproduce
I guess you should have data in MySql tables created by version 2.2.3 (and before, we are running Airflow since 1.10.x) and try to upgrade to 2.3.3
Operating System
using docker image - apache/airflow:2.3.3-python3.9
Versions of Apache Airflow Providers
No response
Deployment
Other 3rd-party Helm chart
Deployment details
running MySql 8 in RDS (AWS)
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions