Issue 1043: All the changes submitted to a specific git and branch are "Submitted, Merge Pending"
Status:  Duplicate
Merged:  issue 1044
Owner: ----
Closed:  Aug 2011
Reported by leandro....@gmail.com, Jul 8, 2011
Affected Version: 2.1.6.1

What steps will reproduce the problem?
1.Push change to Gerrit for inspection (refs/for)
2.Have the change fully reviewed and approved
3.Click on "Submit to patch"

What is the expected output? What do you see instead?
Expected: Change to get applied on the main code and ChangePage on Merged status.
What I see: All the changes on  "Submitted, Merge Pending" status and nothing applied to the main code.

Please provide any additional information below.
Backgroud (what probably caused the issue): We got some users that, for mistake, have performed their pushes  directly to Gerrit file system (using ss through port #22), and because they have write permissions to it, the changes got applied, and several ownerships inside the git got changed from "gerrit" user to another accounts. After we realized that, we change the ownership back to "gerrit" user, and made sure that gerrit user also has write permissions on all files under the .git.

Problem: After that, all the changes submitted to one specific branch at this git is getting "Submitted, Merge Pending" status. Changes on different branches are going ok.

What we have already made: The list of changes on "Submitted, Merge Pending" status for this git on the specific failing branch is over 40 changes now. We have already tried to manually Merge the first one of the queue, to see if the rest of them would start going through, but it have not worked.  We have followed below steps to make the first change on the queue get merged:

1 - Clonned the git
2 - Downloaded the changes from the Gerrit change page
3 - Pushed the changes to Gerrit withouth going to inspection (pushing directly to refs/heads)
4 - Since after that, the change was still on  "Submitted, Merge Pending", we changed the status on the DB to "Merged"

Even after that, the other changes were still stucked on "Submitted, Merge Pending".

Evidences:

Error_log errors:
[2011-07-08 11:54:00,135] ERROR com.google.gerrit.server.git.ChangeMergeQueue : Merge attempt for <project path>,refs/heads/<specific branch that are failing>  failed

Git-GC output on this git (to make sure that the git is fully operational):
> git gc
Counting objects: 976236, done.
Delta compression using up to 24 threads.
Compressing objects: 100% (258358/258358), done.
Writing objects: 100% (976236/976236), done.
Total 976236 (delta 511567), reused 975865 (delta 511201)
> 

We have not restarted Gerrit since this issue.
Can someone please help?

Aug 15, 2011
Project Member #1 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 1044