|Re: [jgit-dev] Should repack() be synchronized for ObjectDirectory?|
I saw your bug  https://bugs.eclipse.org/bugs/show_bug.cgi?id=429717 and was yesterday trying to reproduce the problem. Since in your case we don’t have concurrent write operations against git’s database (only readers racing against a single writer) I don’t think it’s about data corruption. I guess we have a temporary situation that if a reader asks for objects in a repo in which currently a gc happens he get’s errors. If the same reader reopens the repository a second later and ask for the same object I think he will be successful. Maybe there are bugs in JGit that we don’t signal this situation correctly. But I am not sure whether we should solve this with synchronizing in GC.
I suggest we discuss this further on the bugzilla bug. I’ll update this now.
Back to the top