Large number of projects in pending_delete state since 2017/01/17
Description
We have a large number of projects on GitLab.com that the ProjectDestroyWorker
failed to delete on 2017/01/17 due to an exception related to project_statistics
- We're working on cleaning pending_delete
projects in https://gitlab.com/gitlab-org/gitlab-ce/issues/20984. But I'd like to understand how we got into this state due to an exception related to project_statistics
PG::UndefinedTable: ERROR: relation "project_statistics" does not exist LINE 5: WHERE a.attrelid = '"project_statistics"'::re... ^ : SELECT a.attname
, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN
pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"project_statistics"'::regclass AND a.attnum > 0 AND NOT
a.attisdropped ORDER BY a.attnum