Issue 1474: Creating new user could randomly corrupt all git repositories.
Status:  New
Owner: ----
Reported by sye...@gmail.com, Jul 16, 2012
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version: 2.4.2

What steps will reproduce the problem?
1. Fresh installation gerrit 2.4.2 on ubuntu 12.04, default-java (java-6-openjdk-amd64). Default settings with postgresql, reverse-proxy with nginx, sshd port 2222.
2. Register first administrator user, grant perms on All-Projects for Push, Create Reference etc on /refs/heads/* for Administrators. Grant perms on All-Projects for Merge-Commit on /refs/for/* for Administrators due to issue 1072 - https://code.google.com/p/gerrit/issues/detail?id=1072
3. Create project using installation guide command ssh -p 2222 user@example.com gerrit create-project --name demo-project. (I created project not through localhost)
4. git push ssh://user@example.log:2222/demo-project *:*
5. Let another user sign in using Google OpenID and add them to administrators group. 
6. Create another project with with the new administrator, repeating steps 3,4.
7. Create another Google OpenID user.

What is the expected output? What do you see instead?
The project should still exist, but the branches tab for all projects is empty on web GUI. 

Please provide any additional information below.
From my experiences this is a nondeterministic bug. Basically the first push creates the project and it is viewable on gitweb, the branches tab shows the HEAD, master, and refs/meta/config refs with commit hashes and gitweb links that work. But after some time - user creation I think is the culprit, the branches go missing. 

In the directory structure, ../server/git/demo-project.git/objects loses most of its objects (leaving behind maybe 10). There is nothing in the pack/. Running ls-projects with any admin user shows nothing, but running ls-projects --all shows up all projects. Otherwise there is no way to access the git repo through push/clone etc. The only thing it says is /demo-project Not a Gerrit project, corresponding to lack of perms, but I have clearly set the perms on the web GUI and they still remain when double checking.
Jul 16, 2012
#1 sye...@gmail.com
Running the same procedure on gerrit 2.2.2.2 has been rock solid. I am not able to reproduce this bug at all