Skip to content
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

SQL extractor causing snowflake query timeouts #1226

Closed
harels opened this issue Nov 2, 2022 · 5 comments
Closed

SQL extractor causing snowflake query timeouts #1226

harels opened this issue Nov 2, 2022 · 5 comments
Assignees
Labels
area:integration/airflow openlineage-airflow kind:bug Something isn't working state:needs-triage Requires triage to determine kind, area and priority tool:snowflake Snowflake

Comments

@harels
Copy link
Member

harels commented Nov 2, 2022

a user is using Airflow to run relatively simple Snowflake queries using a SnowflakeHook.
These queries usually finish in <30 seconds, but approximately 5-10% of the time the task executing them deadlocks and runs forever until being killed manually by a user or by Airflow when the DAG timeout is reached.
When the task is terminated, I see that execution hung while the Snowflake connector was performing OCSP validation.
Setting "insecure_mode=True" on the Snowflake connection resolves the problem but this solution is not ideal.
I've tried upgrading both snowflake-connector-python and apache-airflow-providers-snowflake to their latest versions (2.8.0 and 3.3.0) with no change in behavior.

Snowflake team identified a potential conflict with OpenLineage that may be responsible for this behavior.
by passing the environmental variable OPENLINEAGE_DISABLED=True, the connection failures went away.

Issue raised with Snowflake too:
snowflakedb/snowflake-connector-python#1299

apache-airflow==2.4.1+astro.1
apache-airflow-providers-snowflake==2.5.0
snowflake-connector-python==2.7.1
snowflake-sqlalchemy==1.4.2
openlineage-airflow==0.14.1
openlineage-integration-common==0.14.1
openlineage-python==0.14.1
openlineage_sql==0.14.1

@harels harels added kind:bug Something isn't working tool:snowflake Snowflake area:integration/airflow openlineage-airflow extractor labels Nov 2, 2022
@harels
Copy link
Member Author

harels commented Nov 2, 2022

might be related to #833

@mobuchowski
Copy link
Member

Will take a look on this on Airflow side.

@denimalpaca
Copy link
Contributor

@harels @mobuchowski did #1435 complete this?

@kacpermuda
Copy link
Contributor

We removed snowflake calls in Airflow integration: apache/airflow#39113

@kacpermuda kacpermuda added the state:needs-triage Requires triage to determine kind, area and priority label May 3, 2024
@JDarDagran
Copy link
Contributor

Closing for now. Snowflake released possible fix but seems a bit unrelated to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:integration/airflow openlineage-airflow kind:bug Something isn't working state:needs-triage Requires triage to determine kind, area and priority tool:snowflake Snowflake
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants