> On 11 Feb 2022, at 00:53, Dharama Rao Bala <
dharama...@lookout.com> wrote:
>
> Yup, Once code is merged , data will be replicated to Github.
> This is occurring at the time, when the reviewer clicks the review /verify button.
> Here I am sharing the thread dump file here
>
https://drive.google.com/drive/u/0/folders/1_jSzierK0tQ7O2LF93WNwIKS3mqJBGYw
>
> On Thu, Feb 10, 2022 at 4:40 PM Luca Milanesio <
luca.mi...@gmail.com> wrote:
>
>
> > On 11 Feb 2022, at 00:29, Dharama Rao Bala <
dharama...@lookout.com> wrote:
> >
> > Sure. sent the thread dump in another mail.
> > Here is the stack trace of the blocked thread>
> > HTTP POST /changes/continuous-delivery%2Fgerrit-replication-test~356153/revisions/1/review (dharama.raobala from 10.141.0.100)
> > PRIORITY : 5
> >
> > THREAD ID : 0X00007FB12C398000
> >
> > NATIVE ID : 0X2B7D
> >
> > NATIVE ID (DECIMAL) : 11133
> >
> > STATE : BLOCKED
> >
> >
> > stackTrace:
> > java.lang.Thread.State: BLOCKED (on object monitor)
> > at com.googlesource.gerrit.plugins.replication.Destination.schedule(Destination.java:427)
> > - waiting to lock <0x000000032b8dbf08> (a java.lang.Object)
>
> You need to see who is locking the object <0x000000032b8dbf08> in the other threads.
Bingo: the object is locked by a pending push:
"ReplicateTo-fi-1[java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@2e025476[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@b5c5af3[Wrapped task = com.google.gerrit.server.logging.LoggingContextAwareRunnable@128ef3b0]]]" #73 prio=5 os_prio=0 cpu=418413959.65ms elapsed=488442.89s tid=0x00007fb10c067000 nid=0xa81 runnable [0x00007fb0e584d000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.open0(java...@11.0.13/Native Method)
at java.io.FileInputStream.open(java...@11.0.13/FileInputStream.java:219)
at java.io.FileInputStream.<init>(java...@11.0.13/FileInputStream.java:157)
at org.eclipse.jgit.util.io.SilentFileInputStream.<init>(SilentFileInputStream.java:31)
at org.eclipse.jgit.util.IO.readSome(IO.java:68)
at org.eclipse.jgit.internal.storage.file.RefDirectory.scanRef(RefDirectory.java:1096)
at org.eclipse.jgit.internal.storage.file.RefDirectory.readRef(RefDirectory.java:1064)
at org.eclipse.jgit.internal.storage.file.RefDirectory.readAndResolve(RefDirectory.java:264)
at org.eclipse.jgit.internal.storage.file.RefDirectory.exactRef(RefDirectory.java:286)
at com.google.gerrit.server.notedb.AbstractChangeNotes.readRef(AbstractChangeNotes.java:166)
at com.google.gerrit.server.notedb.ChangeNotes.readRef(ChangeNotes.java:604)
at com.google.gerrit.server.notedb.AbstractChangeNotes.openHandle(AbstractChangeNotes.java:184)
at com.google.gerrit.server.notedb.AbstractChangeNotes.load(AbstractChangeNotes.java:154)
at com.google.gerrit.server.notedb.ChangeNotes$Factory.createChecked(ChangeNotes.java:120)
at com.google.gerrit.server.notedb.ChangeNotes$Factory.createChecked(ChangeNotes.java:124)
at com.google.gerrit.server.query.change.ChangeData.reloadChange(ChangeData.java:508)
at com.google.gerrit.server.query.change.ChangeData.change(ChangeData.java:497)
at com.google.gerrit.server.permissions.RefVisibilityControl.isVisible(RefVisibilityControl.java:95)
at com.google.gerrit.server.permissions.RefControl$ForRefImpl.can(RefControl.java:629)
at com.google.gerrit.server.permissions.RefControl$ForRefImpl.check(RefControl.java:516)
at com.google.gerrit.server.events.EventBroker.isVisibleTo(EventBroker.java:207)
at com.google.gerrit.server.events.EventBroker.fireEvent(EventBroker.java:142)
at com.google.gerrit.server.events.EventBroker.postEvent(EventBroker.java:97)
at com.googlesource.gerrit.plugins.replication.Destination.postReplicationFailedEvent(Destination.java:809)
at com.googlesource.gerrit.plugins.replication.Destination.reschedule(Destination.java:565)
>>>>>> - locked <0x000000032b8dbf08> (a java.lang.Object)
at com.googlesource.gerrit.plugins.replication.PushOne.doRunPushOperation(PushOne.java:482)
at com.googlesource.gerrit.plugins.replication.PushOne.runPushOperation(PushOne.java:389)
at com.googlesource.gerrit.plugins.replication.PushOne.lambda$run$2(PushOne.java:375)
It looks like the scanning of the refs is taking ages !!!!
How many refs do you have on this repo?
What type of filesystem are you using?
Luca.