ActionView::Template::Error: PG::QueryCanceled: ERROR: canceling statement due to statement timeout
https://sentry.gitlab.net/gitlab/gitlabcom/issues/1770385/?referrer=gitlab_plugin
PG::QueryCanceled: ERROR: canceling statement due to statement timeout
from active_record/connection_adapters/postgresql_adapter.rb:675:in `exec_params'
from active_record/connection_adapters/postgresql_adapter.rb:675:in `block (2 levels) in exec_no_cache'
from active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
from active_support/concurrency/share_lock.rb:187:in `yield_shares'
from active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
from active_record/connection_adapters/postgresql_adapter.rb:674:in `block in exec_no_cache'
from active_record/connection_adapters/abstract_adapter.rb:722:in `block (2 levels) in log'
from active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
from active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
from active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
from active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
from active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
from active_record/connection_adapters/abstract_adapter.rb:721:in `block in log'
from active_support/notifications/instrumenter.rb:24:in `instrument'
from active_record/connection_adapters/abstract_adapter.rb:712:in `log'
from active_record/connection_adapters/postgresql_adapter.rb:673:in `exec_no_cache'
from active_record/connection_adapters/postgresql_adapter.rb:654:in `execute_and_clear'
from marginalia.rb:94:in `execute_and_clear_with_marginalia'
from active_record/connection_adapters/postgresql/database_statements.rb:98:in `exec_query'
from active_record/connection_adapters/abstract/database_statements.rb:489:in `select'
from active_record/connection_adapters/abstract/database_statements.rb:70:in `select_all'
from active_record/connection_adapters/abstract/query_cache.rb:107:in `select_all'
from gitlab/database/load_balancing/connection_proxy.rb:72:in `block in read_using_load_balancer'
from gitlab/database/load_balancing/load_balancer.rb:32:in `read'
from gitlab/database/load_balancing/connection_proxy.rb:71:in `read_using_load_balancer'
from gitlab/database/load_balancing/connection_proxy.rb:44:in `select_all'
from active_record/relation/calculations.rb:298:in `block in execute_simple_calculation'
from active_record/relation.rb:839:in `skip_query_cache_if_necessary'
from active_record/relation/calculations.rb:298:in `execute_simple_calculation'
from active_record/relation/calculations.rb:252:in `perform_calculation'
from active_record/relation/calculations.rb:142:in `calculate'
from active_record/relation/calculations.rb:49:in `count'
from active_record/relation.rb:261:in `size'
from /opt/gitlab/embedded/service/gitlab-rails/app/views/projects/merge_requests/show.html.haml:9:in `_app_views_projects_merge_requests_show_html_haml__3042533735576649919_69924116180300'
Edited by Nick Thomas