Often we run into issues where we get errors while uploading a new patchset
--Thanks,-Martin
--
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/CAKFHYViwkDyhDO7ewCwjXqGUyRKCxr4MFq0k%3DQ0MXkpEm7b4aA%40mail.gmail.com.
On 6 Sep 2023, at 23:26, Matthias Sohn <matthi...@gmail.com> wrote:On Wed, Sep 6, 2023 at 11:47 PM Martin Fick <marti...@linaro.org> wrote:On Tue, 5 Sept 2023 at 00:30, DARSHIT THAKKAR <dnt...@gmail.com> wrote:Often we run into issues where we get errors while uploading a new patchset...I am curious how often this happens for you and for others? once a day, week, month, year?Gerrit 3.x+ now directly modifies the packed-refs file on every new change upload. This makes this somewhat riskier than it used to be, and I wonder if this is now something that we need to worry about and potentially design solutions to avoid?Any data from others experiencing this would be very useful.We observed on busy large repositories that git gc sometimes fails since it cannot lock packed-refsif some concurrent receive-pack request in Gerrit already holds this lock during PackedBatchRefUpdateto process an incoming push.We disabled packing refs in git gc since they are anyway repacked on those receive-packs.
Thanks,-Martin--
--
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/CAKFHYViwkDyhDO7ewCwjXqGUyRKCxr4MFq0k%3DQ0MXkpEm7b4aA%40mail.gmail.com.--
--
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/CAKSZd3S%3DBN-M%3DnV8CQec2tGSW-D8iv--Odz7XguTor4j53F4Dw%40mail.gmail.com.
On 6 Sep 2023, at 23:26, Matthias Sohn <matthi...@gmail.com> wrote:On Wed, Sep 6, 2023 at 11:47 PM Martin Fick <marti...@linaro.org> wrote:On Tue, 5 Sept 2023 at 00:30, DARSHIT THAKKAR <dnt...@gmail.com> wrote:Often we run into issues where we get errors while uploading a new patchset...I am curious how often this happens for you and for others? once a day, week, month, year?Gerrit 3.x+ now directly modifies the packed-refs file on every new change upload. This makes this somewhat riskier than it used to be, and I wonder if this is now something that we need to worry about and potentially design solutions to avoid?Any data from others experiencing this would be very useful.We observed on busy large repositories that git gc sometimes fails since it cannot lock packed-refsif some concurrent receive-pack request in Gerrit already holds this lock during PackedBatchRefUpdateto process an incoming push.We disabled packing refs in git gc since they are anyway repacked on those receive-packs.Thanks for sharing your experience, we also experience the same issue when the below two conditions happen at the same time:1. The repository has *a lot of refs* (over 2M) and the packed-refs file is around 100MBytes2. The update for packed-refs fails when there is a lot of workload and JVM GC activity, causing the thread updating the refs failingSo far, we have some crontab detecting the packed-refs.lock as stale (the utime of the .lock file is older than X minutes) and we remove it.
---Martin
--
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/CAKFHYVhTH5e6pCL--QW%3Dn-rdMeLFDRxocM6KPfBjxNbQKh-6VQ%40mail.gmail.com.