Fails to push patches to gerrit
Description
causes
relates to
Activity

Barak Korren April 21, 2017 at 4:20 PM
yeah

Former user April 21, 2017 at 2:00 PM
, your script seems to work nicely to overcome this situation. Can we close this ticket?

Barak Korren April 12, 2017 at 8:09 AM
It seems that 'gerrit flush-caches
' does not seem to have a syntax for flushing multiple caches in the same command, so might as well use '--all
' then do multiple SSH round-trips. I've changes the script to do this. We need to find an opportunity to +v it.

Former user April 10, 2017 at 9:43 AM
The current doc recommends flushing all caches and we don't merge accounts that often to really be negatively affected by this.
After a quick search there seems to be an "accounts_byemail" cache that may be in play here:
https://review.gerrithub.io/Documentation/cmd-flush-caches.html#_examples

Barak Korren April 9, 2017 at 7:28 AM
Hmm... it does not seem to happen again, so I guess the thing is that the following is not enough:
Any idea which caches we should flush? I'd hate to make the script blindly flush all of them.
Guess I can't +v the patch yet...
Details
Assignee
Former userFormer user(Deactivated)Reporter
Former userFormer user(Deactivated)Priority
Medium
Details
Details
Assignee

Reporter

When I try to push new patches to gerrit I get:
Counting objects: 8, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 574 bytes | 0 bytes/s, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3)
remote: Processing changes: refs: 2, done
To ssh://<user>@gerrit.ovirt.org:29418/jenkins
! [remote rejected] extract_projects_folder_path_from_stage_scripts -> refs/for/master (internal server error: java.lang.IllegalArgumentException: expected one element but was: <1001214, 1001215>)
error: failed to push some refs to 'ssh://<user>@gerrit.ovirt.org:29418/jenkins'
Server's log error is:
ERROR com.google.gerrit.server.git.ReceiveCommits : Can't insert change/patchset for jenkins. Error inserting change/patchset
...
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: expected one element but was: <1001214, 1001215>