This looks temporary solution.After some days issues are coming back for those reposities.
On Wednesday 17 April 2024 at 16:39:01 UTC+1 tech....@gmail.com wrote:This looks temporary solution.After some days issues are coming back for those reposities.This makes it sound like the problem might be with the repositories themselves, looks like they are becoming corrupted for some reason and a failed Clone is the result, rather than the cause.
Git GC should be run regularly on the repo, depending on how busy the repo is, so I wouldn't call it a temporary solution.
On Wednesday, April 17, 2024 at 10:18:56 AM UTC-7 Daniele Sassoli wrote:On Wednesday 17 April 2024 at 16:39:01 UTC+1 tech....@gmail.com wrote:This looks temporary solution.After some days issues are coming back for those reposities.This makes it sound like the problem might be with the repositories themselves, looks like they are becoming corrupted for some reason and a failed Clone is the result, rather than the cause.
Git GC should be run regularly on the repo, depending on how busy the repo is, so I wouldn't call it a temporary solution.One of my repositories can't be deep-cloned after a scheduled jgit gc operation -- it requires manual `git fsck` and `git gc` to recover it. I presume something in jgit is causing the issue, but I didn't report it here. We disabled scheduled gc, instead.
--
--
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/d341dc3d-de2c-416d-8cee-f45639bf7503n%40googlegroups.com.
On Wed, Apr 17, 2024 at 7:55 PM 'Aaron Smith' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:On Wednesday, April 17, 2024 at 10:18:56 AM UTC-7 Daniele Sassoli wrote:On Wednesday 17 April 2024 at 16:39:01 UTC+1 tech....@gmail.com wrote:This looks temporary solution.After some days issues are coming back for those reposities.This makes it sound like the problem might be with the repositories themselves, looks like they are becoming corrupted for some reason and a failed Clone is the result, rather than the cause.
Git GC should be run regularly on the repo, depending on how busy the repo is, so I wouldn't call it a temporary solution.One of my repositories can't be deep-cloned after a scheduled jgit gc operation -- it requires manual `git fsck` and `git gc` to recover it. I presume something in jgit is causing the issue, but I didn't report it here. We disabled scheduled gc, instead.Did git fsck show any errors or corruptions ?
Should we disable scheduled gc. Is that causing the issue?If we disable schedules gc, how we are going to do git garbage collection ? Repository size will grow wihtout this
On Wednesday, April 17, 2024 at 8:30:52 PM UTC-7 tech....@gmail.com wrote:Should we disable scheduled gc. Is that causing the issue?If we disable schedules gc, how we are going to do git garbage collection ? Repository size will grow wihtout this
On Wednesday, April 17, 2024 at 1:10:13 PM UTC-7 Matthias Sohn wrote:On Wed, Apr 17, 2024 at 7:55 PM 'Aaron Smith' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:On Wednesday, April 17, 2024 at 10:18:56 AM UTC-7 Daniele Sassoli wrote:On Wednesday 17 April 2024 at 16:39:01 UTC+1 tech....@gmail.com wrote:This looks temporary solution.After some days issues are coming back for those reposities.This makes it sound like the problem might be with the repositories themselves, looks like they are becoming corrupted for some reason and a failed Clone is the result, rather than the cause.
Git GC should be run regularly on the repo, depending on how busy the repo is, so I wouldn't call it a temporary solution.One of my repositories can't be deep-cloned after a scheduled jgit gc operation -- it requires manual `git fsck` and `git gc` to recover it. I presume something in jgit is causing the issue, but I didn't report it here. We disabled scheduled gc, instead.Did git fsck show any errors or corruptions ?I ran into this while running Gerit 3.9.1. It started after I enabled scheduled gc on a weekly basis. Attempts to clone gave this message:
Cloning into 'XXXX-XXXXXX'...
fatal: internal server error
remote: internal server error
fatal: early EOF
fatal: fetch-pack: invalid index-pack outputIf I did a shallow clone it worked, then we could `git fetch --unshallow origin` -- but this wasn't good for our workflow.Here's what git fsck said:Checking object directories: 100% (256/256), done.
Checking objects: 100% (206765/206765), done.
dangling tree 865ef05485f307e178e11ad2e11d6f3dab83f9bb
dangling blob e94cb6471e690215a1c3d86b25b3582584ad3e7c
dangling commit d2b71e1ba021bac5bc417f9eeb10a78b34cdd4c2That dangling commit was the HEAD of our main development branch. After running `fit fsck`, I ran `git gc` (from the shell, not from Gerrit UI):Counting objects: 205576, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (80098/80098), done.
Writing objects: 100% (205576/205576), done.
Total 205576 (delta 126873), reused 202217 (delta 123572)
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/a53449bc-5159-4614-9e10-ca9b891d9d73n%40googlegroups.com.
On 18 Apr 2024, at 07:45, Sven Selberg <sven.s...@axis.com> wrote:On Thursday, April 18, 2024 at 6:21:46 AM UTC+2 Aaron Smith wrote:On Wednesday, April 17, 2024 at 8:30:52 PM UTC-7 tech....@gmail.com wrote:Should we disable scheduled gc. Is that causing the issue?If we disable schedules gc, how we are going to do git garbage collection ? Repository size will grow wihtout thisIt seems like there's an issue with jgit gc, but you can still schedule `git gc` in a cron-job or simlar until the issue is fixed.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/c97ae8ba-5091-42d8-b646-253559c2eb3bn%40googlegroups.com.
On 18 Apr 2024, at 07:45, Sven Selberg <sven.s...@axis.com> wrote:On Thursday, April 18, 2024 at 6:21:46 AM UTC+2 Aaron Smith wrote:On Wednesday, April 17, 2024 at 8:30:52 PM UTC-7 tech....@gmail.com wrote:Should we disable scheduled gc. Is that causing the issue?If we disable schedules gc, how we are going to do git garbage collection ? Repository size will grow wihtout thisIt seems like there's an issue with jgit gc, but you can still schedule `git gc` in a cron-job or simlar until the issue is fixed.There was an issue with JGit GC which was fixed months ago: it was an index out of bound on the Bitmap, which matches what it was reported.Gertit v3.6.8 is EOL, so I doubt it contains the fixes. Can you reproduce it with the latest released version of Gerrit? (e.g. v3.9.4)Luca.
On 18 Apr 2024, at 07:45, Sven Selberg <sven.s...@axis.com> wrote:On Thursday, April 18, 2024 at 6:21:46 AM UTC+2 Aaron Smith wrote:On Wednesday, April 17, 2024 at 8:30:52 PM UTC-7 tech....@gmail.com wrote:Should we disable scheduled gc. Is that causing the issue?If we disable schedules gc, how we are going to do git garbage collection ? Repository size will grow wihtout thisIt seems like there's an issue with jgit gc, but you can still schedule `git gc` in a cron-job or simlar until the issue is fixed.There was an issue with JGit GC which was fixed months ago: it was an index out of bound on the Bitmap, which matches what it was reported.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/04E1A2EF-CFB7-49FC-A93F-2B1BA1C07047%40gmail.com.
On 18 Apr 2024, at 16:25, Matthias Sohn <matthi...@gmail.com> wrote:On Thu, Apr 18, 2024 at 11:22 AM Luca Milanesio <luca.mi...@gmail.com> wrote:On 18 Apr 2024, at 07:45, Sven Selberg <sven.s...@axis.com> wrote:On Thursday, April 18, 2024 at 6:21:46 AM UTC+2 Aaron Smith wrote:Should we disable scheduled gc. Is that causing the issue?If we disable schedules gc, how we are going to do git garbage collection ? Repository size will grow wihtout thisIt seems like there's an issue with jgit gc, but you can still schedule `git gc` in a cron-job or simlar until the issue is fixed.There was an issue with JGit GC which was fixed months ago: it was an index out of bound on the Bitmap, which matches what it was reported.Which JGit change fixing this are you referring to ?
On Thu, Apr 18, 2024 at 1:02 AM 'Aaron Smith' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:On Wednesday, April 17, 2024 at 1:10:13 PM UTC-7 Matthias Sohn wrote:On Wed, Apr 17, 2024 at 7:55 PM 'Aaron Smith' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:On Wednesday, April 17, 2024 at 10:18:56 AM UTC-7 Daniele Sassoli wrote:On Wednesday 17 April 2024 at 16:39:01 UTC+1 tech....@gmail.com wrote:This looks temporary solution.After some days issues are coming back for those reposities.This makes it sound like the problem might be with the repositories themselves, looks like they are becoming corrupted for some reason and a failed Clone is the result, rather than the cause.
Git GC should be run regularly on the repo, depending on how busy the repo is, so I wouldn't call it a temporary solution.One of my repositories can't be deep-cloned after a scheduled jgit gc operation -- it requires manual `git fsck` and `git gc` to recover it. I presume something in jgit is causing the issue, but I didn't report it here. We disabled scheduled gc, instead.Did git fsck show any errors or corruptions ?I ran into this while running Gerit 3.9.1. It started after I enabled scheduled gc on a weekly basis. Attempts to clone gave this message:Do you mean gc scheduled in Gerrit using JGit or git gc scheduled by e.g. a cronjob ?
On Thursday 18 April 2024 at 14:52:17 UTC+5:30 Luca Milanesio wrote:On 18 Apr 2024, at 07:45, Sven Selberg <sven.s...@axis.com> wrote:On Thursday, April 18, 2024 at 6:21:46 AM UTC+2 Aaron Smith wrote:On Wednesday, April 17, 2024 at 8:30:52 PM UTC-7 tech....@gmail.com wrote:Should we disable scheduled gc. Is that causing the issue?If we disable schedules gc, how we are going to do git garbage collection ? Repository size will grow wihtout thisIt seems like there's an issue with jgit gc, but you can still schedule `git gc` in a cron-job or simlar until the issue is fixed.There was an issue with JGit GC which was fixed months ago: it was an index out of bound on the Bitmap, which matches what it was reported.Gertit v3.6.8 is EOL, so I doubt it contains the fixes. Can you reproduce it with the latest released version of Gerrit? (e.g. v3.9.4)Luca.We have a replica sandbox instance , which is also having same issue. we can try upgrading from 3.6.8 to 3.9.4 step by step.
On 18 Apr 2024, at 18:07, 'Aaron Smith' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:On Thursday, April 18, 2024 at 8:01:33 AM UTC-7 tech....@gmail.com wrote:On Thursday 18 April 2024 at 14:52:17 UTC+5:30 Luca Milanesio wrote:On 18 Apr 2024, at 07:45, Sven Selberg <sven.s...@axis.com> wrote:On Thursday, April 18, 2024 at 6:21:46 AM UTC+2 Aaron Smith wrote:On Wednesday, April 17, 2024 at 8:30:52 PM UTC-7 tech....@gmail.com wrote:Should we disable scheduled gc. Is that causing the issue?If we disable schedules gc, how we are going to do git garbage collection ? Repository size will grow wihtout thisIt seems like there's an issue with jgit gc, but you can still schedule `git gc` in a cron-job or simlar until the issue is fixed.There was an issue with JGit GC which was fixed months ago: it was an index out of bound on the Bitmap, which matches what it was reported.Gertit v3.6.8 is EOL, so I doubt it contains the fixes. Can you reproduce it with the latest released version of Gerrit? (e.g. v3.9.4)Luca.We have a replica sandbox instance , which is also having same issue. we can try upgrading from 3.6.8 to 3.9.4 step by step.I'll also try replicating this with 3.9.4 in my sandbox env.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/2005e76a-bb78-4b1f-a592-89a93343f701n%40googlegroups.com.
> On 18 Apr 2024, at 18:10, Luca Milanesio <luca.mi...@gmail.com> wrote:
>
>
>
>> On 18 Apr 2024, at 18:07, 'Aaron Smith' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:
>>
>>
>> On Thursday, April 18, 2024 at 8:01:33 AM UTC-7 tech....@gmail.com wrote:
>> On Thursday 18 April 2024 at 14:52:17 UTC+5:30 Luca Milanesio wrote:
>>
>>> On 18 Apr 2024, at 07:45, Sven Selberg <sven.s...@axis.com> wrote:
>>>
>>>
>>>
>>> On Thursday, April 18, 2024 at 6:21:46 AM UTC+2 Aaron Smith wrote:
>>> On Wednesday, April 17, 2024 at 8:30:52 PM UTC-7 tech....@gmail.com wrote:
>>> Should we disable scheduled gc. Is that causing the issue?
>>> If we disable schedules gc, how we are going to do git garbage collection ? Repository size will grow wihtout this
>>>
>>> It seems like there's an issue with jgit gc, but you can still schedule `git gc` in a cron-job or simlar until the issue is fixed.
On Friday 19 April 2024 at 01:49:21 UTC+5:30 Luca Milanesio wrote:
> On 18 Apr 2024, at 18:10, Luca Milanesio <luca.mi...@gmail.com> wrote:
>
>
>
>> On 18 Apr 2024, at 18:07, 'Aaron Smith' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:
>>
>>
>> On Thursday, April 18, 2024 at 8:01:33 AM UTC-7 tech....@gmail.com wrote:
>> On Thursday 18 April 2024 at 14:52:17 UTC+5:30 Luca Milanesio wrote:
>>
>>> On 18 Apr 2024, at 07:45, Sven Selberg <sven.s...@axis.com> wrote:
>>>
>>>
>>>
>>> On Thursday, April 18, 2024 at 6:21:46 AM UTC+2 Aaron Smith wrote:
>>> On Wednesday, April 17, 2024 at 8:30:52 PM UTC-7 tech....@gmail.com wrote:
>>> Should we disable scheduled gc. Is that causing the issue?
>>> If we disable schedules gc, how we are going to do git garbage collection ? Repository size will grow wihtout this
>>>
>>> It seems like there's an issue with jgit gc, but you can still schedule `git gc` in a cron-job or simlar until the issue is fixed.We have stopped scheduled gc from gerrit.config. should we run only "git gc " inside all bare repositories in the backend using cron for 6000+ repos ?
Or, we need to run ssh -p 29418 gerrit gc projectname , command to do manual gc ?
>>
>> There was an issue with JGit GC which was fixed months ago: it was an index out of bound on the Bitmap, which matches what it was reported.
>> Gertit v3.6.8 is EOL, so I doubt it contains the fixes. Can you reproduce it with the latest released version of Gerrit? (e.g. v3.9.4)
>>
>> Luca.
>>
>> We have a replica sandbox instance , which is also having same issue. we can try upgrading from 3.6.8 to 3.9.4 step by step.
>>
>> I'll also try replicating this with 3.9.4 in my sandbox env.
>
> The problem I was facing with JGit was due to concurrency of git-receive-packs and GCs at the same time.
> Try to do that and see if you can reproduce the issue with v3.6.8 and then again with v3.9.4.
I checked and my JGit fix (f5f4bf0ad97f67ff56db18033c0a0795b722e96e) *IS NOT* included in v3.6.8 but *IS* included in v3.9.4.
Another option for you is to upgrade to the latest stable-3.6 (currently v3.6.8-36-g27847d3bbf) which contains the jgit bump that includes my fix:
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/bd1cb187-0dba-4f76-ab17-8d9f3bc24a01n%40googlegroups.com.