auto abandon failed with unknow reason on 3.8.4

37 views
Skip to first unread message

Kai Lei

unread,
Jul 9, 2024, 10:52:15 PM (12 days ago) Jul 9
to Repo and Gerrit Discussion
Hi,

We have set changeCleanup.abandonAfter on our gerrit that is running on 3.8.4.
Seems auto abandon doesn't work. The job is running on time but failed with error:

Anyone know what could be the reason?

[2024-07-09T19:48:07.364-07:00] [WorkQueue-2[java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@6bee6e77[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@645cbdc7[Wrapped task = com.google.gerrit.server.logging.LoggingContextAwareRunnable@4d7f0350]]]] ERROR com.google.gerrit.server.change.AbandonUtil : Failed to auto-abandon inactive change(s): 246852 246699 200893 246698 246882 246685 246863 237253 242364 246662 246748 246789 246693 246692 233962 246765 246690 246691 246397 246750 246752 246689 246687 246683 243659 245657 232797 246593 246579 240248 246571 246454 244559 246498 239941 160667 243245.
com.google.gerrit.extensions.restapi.ResourceConflictException: change is abandoned
        at com.google.gerrit.server.change.AbandonOp.updateChange(AbandonOp.java:89)
        at com.google.gerrit.server.change.BatchAbandon.batchAbandon(BatchAbandon.java:90)
        at com.google.gerrit.server.change.BatchAbandon.batchAbandon(BatchAbandon.java:106)
        at com.google.gerrit.server.change.AbandonUtil.abandonInactiveOpenChanges(AbandonUtil.java:87)
[2024-07-09T19:48:07.365-07:00] [WorkQueue-2[java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@6bee6e77[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@645cbdc7[Wrapped task = com.google.gerrit.server.logging.LoggingContextAwareRunnable@4d7f0350]]]] INFO  com.google.gerrit.server.change.AbandonUtil : Auto-Abandoned 0 of 37 changes.

Thanks
BR
Leon

Daniele Sassoli

unread,
Jul 10, 2024, 4:38:06 AM (12 days ago) Jul 10
to Repo and Gerrit Discussion
Hi Kai

On Wednesday 10 July 2024 at 03:52:15 UTC+1 Kai Lei wrote:
Hi,

We have set changeCleanup.abandonAfter on our gerrit that is running on 3.8.4.
Seems auto abandon doesn't work. The job is running on time but failed with error:

Anyone know what could be the reason?

[2024-07-09T19:48:07.364-07:00] [WorkQueue-2[java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@6bee6e77[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@645cbdc7[Wrapped task = com.google.gerrit.server.logging.LoggingContextAwareRunnable@4d7f0350]]]] ERROR com.google.gerrit.server.change.AbandonUtil : Failed to auto-abandon inactive change(s): 246852 246699 200893 246698 246882 246685 246863 237253 242364 246662 246748 246789 246693 246692 233962 246765 246690 246691 246397 246750 246752 246689 246687 246683 243659 245657 232797 246593 246579 240248 246571 246454 244559 246498 239941 160667 243245.
com.google.gerrit.extensions.restapi.ResourceConflictException: change is abandoned
 
It looks to me like one of the changes listed was abandoned while the command was running, is that something you've checked?
As it's trying to delete them in a batch, it's possible that if one of the fails, they all fail.

Kai Lei

unread,
Jul 10, 2024, 6:52:46 PM (12 days ago) Jul 10
to Daniele Sassoli, Repo and Gerrit Discussion
Hi Daniele,

Thanks! and you are so right! some CL are already abandoned which causes auto-abandon failure. Not so sure why this happened though.

BR
Leon

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/1d952a4c-d932-427e-b247-9b7525f92727n%40googlegroups.com.

Matthias Sohn

unread,
Jul 10, 2024, 6:55:22 PM (12 days ago) Jul 10
to Kai Lei, Daniele Sassoli, Repo and Gerrit Discussion
On Thu, Jul 11, 2024 at 12:52 AM Kai Lei <tiger...@gmail.com> wrote:
Hi Daniele,

Thanks! and you are so right! some CL are already abandoned which causes auto-abandon failure. Not so sure why this happened though.

Do you run gerrit in HA setup with multiple Gerrit primaries ?
 

Kai Lei

unread,
Jul 10, 2024, 7:25:35 PM (12 days ago) Jul 10
to Matthias Sohn, Daniele Sassoli, Repo and Gerrit Discussion
No, it is running on standalone mode.

Nasser Grainawi

unread,
Jul 10, 2024, 7:41:50 PM (12 days ago) Jul 10
to Kai Lei, Matthias Sohn, Daniele Sassoli, Repo and Gerrit Discussion
On Wed, Jul 10, 2024 at 5:25 PM Kai Lei <tiger...@gmail.com> wrote:
No, it is running on standalone mode.

You might try manually triggering a reindex for any of those changes that are already abandoned but the auto-abandon is still trying to run for. Maybe there's something inconsistent there.
 
Reply all
Reply to author
Forward
0 new messages