Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading Apache Airflow from version 2.1.4 to 2.2.1 #19440

Closed
2 tasks done
Elebath opened this issue Nov 6, 2021 · 1 comment
Closed
2 tasks done

Upgrading Apache Airflow from version 2.1.4 to 2.2.1 #19440

Elebath opened this issue Nov 6, 2021 · 1 comment
Labels
area:core kind:bug This is a clearly a bug

Comments

@Elebath
Copy link

Elebath commented Nov 6, 2021

Apache Airflow version

2.1.4

Operating System

Windows

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

No response

What happened

Following the tutorial on how to upgrade Airflow versions (https://airflow.apache.org/docs/apache-airflow/stable/upgrading-from-1-10/index.html) gave the following message:

Airflow found incompatible data in the task_instance table in the metadatabase, and has moved them to _airflow_moved__2_2__task_instance during the database migration to upgrade. Please inspect the moved data to decide whether you need to keep them, and manually drop the _airflow_moved__2_2__task_instance table to dismiss this warning.

What you expected to happen

I could not find a way to get past this. No further way to move pass that was shown. Maybe this is normal.

How to reproduce

I am a beginner and I am not so sure.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@Elebath Elebath added area:core kind:bug This is a clearly a bug labels Nov 6, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Nov 6, 2021

Thanks for opening your first issue here! Be sure to follow the issue template!

@apache apache locked and limited conversation to collaborators Nov 6, 2021
@uranusjr uranusjr closed this as completed Nov 6, 2021
@apache apache unlocked this conversation Nov 7, 2021
potiuk added a commit to potiuk/airflow that referenced this issue Nov 10, 2021
In Airflow 2.2.2 we introduced a fix in apache#18953 where the corrupted
data was moved to a separate table. However some of our users
(rightly) might not have the context. We've never had anything
like that before, so the users who treat Airflow DB as
black-boxes might get confused on what the error means and what
they should do in this case.

You can see it in apache#19440 converted into discussion apache#19444 and apache#19421
indicate that the message is a bit unclear for users. This PR attempts to
improve that it adds `upgrading` section to our documentation and have the
message link to it so that rather than asking questions in the issues,
users can find context and answers what they should do in our docs.

It also guides the users who treat Airflow DB as "black-box" on how they
can use their tools and airflow db shell to fix the problem.
potiuk added a commit that referenced this issue Nov 10, 2021
* Improve message and documentation around moved data

In Airflow 2.2.2 we introduced a fix in #18953 where the corrupted
data was moved to a separate table. However some of our users
(rightly) might not have the context. We've never had anything
like that before, so the users who treat Airflow DB as
black-boxes might get confused on what the error means and what
they should do in this case.

You can see it in #19440 converted into discussion #19444 and #19421
indicate that the message is a bit unclear for users. This PR attempts to
improve that it adds `upgrading` section to our documentation and have the
message link to it so that rather than asking questions in the issues,
users can find context and answers what they should do in our docs.

It also guides the users who treat Airflow DB as "black-box" on how they
can use their tools and airflow db shell to fix the problem.
kaxil pushed a commit that referenced this issue Nov 11, 2021
* Improve message and documentation around moved data

In Airflow 2.2.2 we introduced a fix in #18953 where the corrupted
data was moved to a separate table. However some of our users
(rightly) might not have the context. We've never had anything
like that before, so the users who treat Airflow DB as
black-boxes might get confused on what the error means and what
they should do in this case.

You can see it in #19440 converted into discussion #19444 and #19421
indicate that the message is a bit unclear for users. This PR attempts to
improve that it adds `upgrading` section to our documentation and have the
message link to it so that rather than asking questions in the issues,
users can find context and answers what they should do in our docs.

It also guides the users who treat Airflow DB as "black-box" on how they
can use their tools and airflow db shell to fix the problem.

(cherry picked from commit de43fb3)

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
area:core kind:bug This is a clearly a bug
Projects
None yet
Development

No branches or pull requests

2 participants