Half-created projects after restarts
Summary
It is possible to end up with a half-created project and be unable to finish creating it. I have been hammering our gitlab server extremely hard, and we restarted it several times after it ran out of memory in various ways. So I don't know the exact sequence of events that causes this. But the state is: there exists a repository foo/bar.git under gitlab-data/repositories/foo/bar.git, but there is no record for bar in the projects table.
The error message is from the create project API is: "Failed to create repository via gitlab-shell"
Steps to reproduce
I am not 100% sure how we got into this state. It happened to five out of nearly 8,000 repositories that we attempted to create through the API.
Results of GitLab environment info
We're running 9.1.4.