Stale `exists?` cache for repositories
We've seen an uptick in reports of GitLab.com projects suddenly appearing empty. The UI shows the message that the repository does not exist and they should push files to create it.
In the Rails console, most things look good as far as has_visible_content?
, empty?
, root_ref
, etc. However, exists?
returns false. Running expire_exists_cache
causes the repository to be available again.
I don't what leads to this, but so far all the cases I've seen are projects that have existed for a while as opposed to ones that were recently imported, etc.