My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2176: Problem in ref-update hook
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by shardulg...@gmail.com, Oct 9, 2013
Affected Version:2.6.1

What steps will reproduce the problem?
1. Set syncHookTimeout = 300 (5 min) in gerrit.config under [hooks] and restart the gerrit server for changes to take effect.

2. create ref-update hook at appropriate location, put a command "sleep(150)" in it.
 
3. Push commits to gerrit from user side.

4. The ref-update hook times out giving out an internal error.

5. Log on to gerrit server side, check the error logs, it says the hook automatically timed out after 120 sec, exit value=143

Expected o/p -> the hook should execute for the time specific in sleep command ( since 150 sec < 300 sec (set in gerrit.config)
I see the hook times out after 120 sec and shoots out an internal error.

Exact error in error.logs ->
WARN  com.google.gerrit.server.git.MultiProgressMonitor : MultiProgressMonitor worker killed after 120030ms(timeout 30ms, cancelled)

exact error to user console ->
remote: error: internal error while processing changes (timeout 8ms, cancelled)

Additional information below->

In my case, I submit a huge chuck of commits to gerrit, it takes more than 150-200 seconds for ref-update hook to check all commits. Hence I have set the syncHookTimeout to 5min(300sec). But always, the hook times out when it exceeds 120 sec because of some internal error which is hard to debug.
Sign in to add a comment

Powered by Google Project Hosting