ActiveRecord::QueryCanceled: PG::QueryCanceled: ERROR: canceling statement due to statement timeout
This is happening when attempting to create issues on gitlab-com/diversity-and-inclusion. Creating issues can occasionally result in a 500 error. https://sentry.gitlab.net/gitlab/gitlabcom/issues/1774982/?referrer=gitlab_plugin ``` PG::QueryCanceled: ERROR: canceling statement due to statement timeout active_record/connection_adapters/postgresql_adapter.rb:675:in `exec_params' @connection.exec_params(sql, type_casted_binds) active_record/connection_adapters/postgresql_adapter.rb:675: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 ... (192 additional frame(s) were not displayed) ActiveRecord::QueryCanceled: PG::QueryCanceled: ERROR: canceling statement due to statement timeout ActiveRecord::QueryCanceled: PG::QueryCanceled: ERROR: canceling statement due to statement timeout ``` Logs: - https://log.gprd.gitlab.net/goto/2bb658ea8e77e80f7540b2f61e82e44e - https://log.gprd.gitlab.net/goto/2a70e60fb2c4d3c158d5fbcc297724e3 ZD Ticket: - https://gitlab.zendesk.com/agent/tickets/170963 - https://gitlab.zendesk.com/agent/tickets/171136 - https://gitlab.zendesk.com/agent/tickets/171179
issue