Closed bradleybonitatibus closed 6 months ago
Hi @bradleybonitatibus , does this issue occur consistently or only sometimes?
Hey @Brooke-white! Very infrequently. Raised this issue as it impacted one of our production serverless clusters.
Thanks for that information, @bradleybonitatibus. There are two cases I'm aware of where this error presents. My guess is you are hitting case 1 since you're using Redshift serverless and this issue presents very infrequently.
select version()
which leads to this query failing. clients directly or indirectly issuing this statement experience more consistent failures. SQLAlchemy is one such client.Got it, will go down the suggested path of adding retry logic to handle this scenario. Thanks for your guidance!
This error message looks to me like the database connection was lost.
Improvements to error messages for this case were made in 2.0.914
Driver version
redshift-connector==2.0.909
Redshift version
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.52943
Using Redshift ServerlessClient Operating System
Python version
python3.10
Table schema
Problem description
Expected behaviour: query should drop table
Actual behaviour: exception is raised
Error message/stack trace:
Any other details that can be helpful: Called through
RedshiftSQLOperator
inapache-airflow==2.4.3
Python Driver trace logs
Reproduction code