ActiveRecord::StatementInvalid: PG::QueryCanceled: ERROR: canceling statement due to statement timeout
https://sentry.gitlab.net/gitlab/gitlabcom/issues/713363/
PG::QueryCanceled: ERROR: canceling statement due to statement timeout
peek/views/pg.rb:17:in `async_exec'
super(*args)
peek/views/pg.rb:17:in `async_exec'
super(*args)
active_record/connection_adapters/postgresql_adapter.rb:600:in `block in exec_no_cache'
log(sql, name, binds, type_casted_binds) { @connection.async_exec(sql, type_casted_binds) }
active_record/connection_adapters/abstract_adapter.rb:590:in `block in log'
connection_id: object_id) { yield }
active_support/notifications/instrumenter.rb:21:in `instrument'
yield payload
...
(152 additional frame(s) were not displayed)
ActiveRecord::StatementInvalid: PG::QueryCanceled: ERROR: canceling statement due to statement timeout
: SELECT "note_diff_files"."id" FROM "note_diff_files" INNER JOIN "notes" ON "notes"."id" = "note_diff_files"."diff_note_id" AND "notes"."type" IN ('DiffNote') LEFT OUTER JOIN "projects" ON "projects"."id" = "notes"."project_id" WHERE "note_diff_files"."diff_note_id" IN (SELECT id FROM (SELECT "notes".* FROM "notes" WHERE "notes"."noteable_id" = 20114571 AND "notes"."noteable_type" = 'MergeRequest'
UNION ALL
SELECT "notes".* FROM "notes" WHERE "notes"."system" = 'f' AND "notes"."project_id" IN (9477195, 13083) AND "notes"."noteable_type" = 'Commit' AND "notes"."commit_id" IN ('fba8d080d4cfc602685e5cec2cba5aad24207c84', 'ed2551fb1273464555738c687ed6d484eee75e61', 'fe1455b28505bcb645a332a3c800dca95931a38a', 'eb056ef40bb7fbcb1c3b40de4f941b8b66246188', '9b0a3da11426eed634ad2015fd824b8573874b30', '55d17a2c5f7c9dcdc1151e0b36e6095016a63ab3')) notes) AND (resolved_at IS NULL OR noteable_type = 'Commit')
ActiveRecord::StatementInvalid: PG::QueryCanceled: ERROR: canceling statement due to statement timeout
: SELECT "note_diff_files"."id" FROM "note_diff_files" INNER JOIN "notes" ON "notes"."id" = "note_diff_files"."diff_note_id" AND "notes"."type" IN ('DiffNote') LEFT OUTER JOIN "projects" ON "projects"."id" = "notes"."project_id" WHERE "note_diff_files"."diff_note_id" IN (SELECT id FROM (SELECT "notes".* FROM "notes" WHERE "notes"."noteable_id" = 20114571 AND "notes"."noteable_type" = 'MergeRequest'
UNION ALL
SELECT "notes".* FROM "notes" WHERE "notes"."system" = 'f' AND "notes"."project_id" IN (9477195, 13083) AND "notes"."noteable_type" = 'Commit' AND "notes"."commit_id" IN ('fba8d080d4cfc602685e5cec2cba5aad24207c84', 'ed2551fb1273464555738c687ed6d484eee75e61', 'fe1455b28505bcb645a332a3c800dca95931a38a', 'eb056ef40bb7fbcb1c3b40de4f941b8b66246188', '9b0a3da11426eed634ad2015fd824b8573874b30', '55d17a2c5f7c9dcdc1151e0b36e6095016a63ab3')) notes) AND (resolved_at IS NULL OR noteable_type = 'Commit')