Uploading artifacts fail with a 500
https://sentry.gitlab.net/gitlab/gitlabcom/issues/998719/
PG::QueryCanceled: ERROR: canceling statement due to statement timeout
CONTEXT: while rechecking updated tuple (143904,78) in relation "project_statistics"
active_record/connection_adapters/postgresql_adapter.rb:611:in `async_exec_params'
@connection.exec_params(sql, type_casted_binds)
active_record/connection_adapters/postgresql_adapter.rb:611:in `block (2 levels) in exec_no_cache'
@connection.exec_params(sql, type_casted_binds)
active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
yield
active_support/concurrency/share_lock.rb:187:in `yield_shares'
yield
active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
@lock.yield_shares(compatible: [:load]) do
...
(258 additional frame(s) were not displayed)
ActiveRecord::QueryCanceled: PG::QueryCanceled: ERROR: canceling statement due to statement timeout
CONTEXT: while rechecking updated tuple (143904,78) in relation "project_statistics"
: UPDATE "project_statistics" SET build_artifacts_size = COALESCE(build_artifacts_size, 0) + (474954), storage_size = COALESCE(storage_size, 0) + (474954) WHERE "project_statistics"."project_id" = 278964
ActiveRecord::QueryCanceled: PG::QueryCanceled: ERROR: canceling statement due to statement timeout
CONTEXT: while rechecking updated tuple (143904,78) in relation "project_statistics"
: UPDATE "project_statistics" SET build_artifacts_size = COALESCE(build_artifacts_size, 0) + (474954), storage_size = COALESCE(storage_size, 0) + (474954) WHERE "project_statistics"."project_id" = 278964
This is causing a lot of our CI jobs to fail regularly
Edited by Heinrich Lee Yu