Some projects fail to export due to the error PG::QueryCanceled: ERROR: canceling statement due to statement timeout. This issue may arise from inadequate table indexes during the export process rather than from the batch size mentioned in #441426 (closed).
The Kibana filter displays the project details along with the SQL query that encountered the error. With this information, we can assess potential performance issues of the SQL queries using Database Lab. When utilizing Database Lab, it's essential to use the project_id of the project that failed to examine SQL performance, especially when exporting a large number of records.
@wortschi@m_frankiewicz, I created this to fix PG::QueryCanceled: ERROR errors that happen when exporting large projects. The issue impacts DT and Project Export.
Fixing the problem should allow us to remove the OPS FF: export_reduce_relation_batch_size
Magdalena Frankiewiczchanged title from Project Export - PG::QueryCanceled: ERROR: canceling statement due to statement timeout to Project Export in import/export and direct transfer - PG::QueryCanceled: ERROR: canceling statement due to statement timeout
changed title from Project Export - PG::QueryCanceled: ERROR: canceling statement due to statement timeout to Project Export in import/export and direct transfer - PG::QueryCanceled: ERROR: canceling statement due to statement timeout
@rodrigo.tomonari@.luke I've been wondering if we should take a look at the incident logs while they are still available and add any information to this issue that would help in getting a better understanding of the root cause. Or do we already know what needs to be done here - WDYT?
@wortschi, The incident error is related to #458367, a slightly different problem that occurs during import rather than export.
I copied the failed SQL, stack trace, and the impacted project from the logs and added a comment in the other issue. All the information to fix the problem.