I have setup gerrit replication(I use gerrit 2.5) and success for some little test project,but fail in some git project which have large repository(for example > 10G)
When I do "replication start",I notice that the ssh action last for a short time for example half a minute and end with this error msg log:
[2012-12-13 15:52:48,834] ERROR com.googlesource.gerrit.plugins.replication.ReplicationQueue : Cannot replicate to ger...@10.115.6.212:review_site/git/projects/phone.git
org.eclipse.jgit.errors.TransportException: ger...@10.115.6.212:review_site/git/projects/phone.git: java.io.IOException: channel is broken
at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:204)
at org.eclipse.jgit.transport.BasePackPushConnection.push(BasePackPushConnection.java:142)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:141)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1127)
at com.googlesource.gerrit.plugins.replication.PushOne.pushVia(PushOne.java:299)
at com.googlesource.gerrit.plugins.replication.PushOne.runImpl(PushOne.java:244)
at com.googlesource.gerrit.plugins.replication.PushOne.runPushOperation(PushOne.java:202)
at com.googlesource.gerrit.plugins.replication.PushOne.access$000(PushOne.java:69)
at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:181)
at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:178)
at com.google.gerrit.server.util.RequestScopePropagator$5.call(RequestScopePropagator.java:196)
at com.google.gerrit.server.util.RequestScopePropagator$4.call(RequestScopePropagator.java:174)
at com.google.gerrit.server.git.PerThreadRequestScope$Propagator$1.call(PerThreadRequestScope.java:73)
at com.googlesource.gerrit.plugins.replication.PushOne.run(PushOne.java:178)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:337)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: java.io.IOException: channel is broken
at com.jcraft.jsch.Channel$1.flush(Channel.java:337)
at com.jcraft.jsch.Channel$1.write(Channel.java:308)
at org.eclipse.jgit.storage.pack.PackOutputStream.write(PackOutputStream.java:124)
at org.eclipse.jgit.storage.file.PackFile.copyAsIs2(PackFile.java:503)
at org.eclipse.jgit.storage.file.PackFile.copyAsIs(PackFile.java:327)
at org.eclipse.jgit.storage.file.WindowCursor.copyObjectAsIs(WindowCursor.java:162)
at org.eclipse.jgit.storage.pack.PackWriter.writeObjectImpl(PackWriter.java:1360)
at org.eclipse.jgit.storage.pack.PackWriter.writeObject(PackWriter.java:1331)
at org.eclipse.jgit.storage.pack.PackOutputStream.writeObject(PackOutputStream.java:161)
at org.eclipse.jgit.storage.file.WindowCursor.writeObjects(WindowCursor.java:168)
at org.eclipse.jgit.storage.pack.PackWriter.writeObjects(PackWriter.java:1319)
at org.eclipse.jgit.storage.pack.PackWriter.writeObjects(PackWriter.java:1307)
at org.eclipse.jgit.storage.pack.PackWriter.writePack(PackWriter.java:897)
at org.eclipse.jgit.transport.BasePackPushConnection.writePack(BasePackPushConnection.java:284)
at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:184)
... 22 more