Community
Participate
Working Groups
On certain NFS clients, when a loose object is created on one client, it may not be immediately available on a different client. Steps to reproduce: 1. Create a test repository on NFS 2. Client-A creates a new commit (which adds a loose object) on the NFS based repository. 3. Client-B immediately tries to read the new commit. This operation sometimes throws a MissingObjectException.
Here's an example of an E2E problem faced by this bug: Consider a Gerrit multi-primary setup with repositories based on NFS. Add a new patch-set to an existing change and then immediately fetch the new patch-set of that change. If the fetch is handled by a gerrit primary different that the one which created the patch-set, then we sometimes run into a MissingObjectException that causes the fetch to fail.
I'd say that's not a bug in jgit but a consequence of using a caching NFS client.
Can you specify what JGit config you have used when experiencing the problem?
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/197714 was merged to [stable-6.1]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=fed1a54935c0180e95804d42c1700b1f1819de3d