Intermittent 500 error received when viewing https://gitlab.com/-/profile/applications

https://sentry.gitlab.net/gitlab/gitlabcom/issues/3314686/?referrer=gitlab_plugin

PG::QueryCanceled: ERROR:  canceling statement due to statement timeout

  lib/gitlab/database/load_balancing/connection_proxy.rb:104:in `block in read_using_load_balancer'
    connection.send(...)
  lib/gitlab/database/load_balancing/load_balancer.rb:55:in `read'
    return yield connection
  lib/gitlab/database/load_balancing/connection_proxy.rb:103:in `read_using_load_balancer'
    @load_balancer.read do |connection|
  lib/gitlab/database/load_balancing/connection_proxy.rb:48:in `select_all'
    read_using_load_balancer(:select_all, arel, name, binds)
  app/views/shared/doorkeeper/applications/_index.html.haml:71:
    - token = app.authorized_tokens.order('created_at desc').first # rubocop: disable CodeReuse/ActiveRecord
...
(236 additional frame(s) were not displayed)

ActiveRecord::QueryCanceled: PG::QueryCanceled: ERROR:  canceling statement due to statement timeout

ActionView::Template::Error: PG::QueryCanceled: ERROR:  canceling statement due to statement timeout

Other Logs

Edited by Tristan