[JIRA] (JENKINS-50394) Branch Indexing fails with MissingObjectException

203 views
Skip to first unread message

aburdajewicz@cloudbees.com (JIRA)

unread,
Mar 26, 2018, 1:47:03 AM3/26/18
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ created an issue
 
Jenkins / Bug JENKINS-50394
Branch Indexing fails with MissingObjectException
Issue Type: Bug Bug
Assignee: Mark Waite
Attachments: indexing.log
Components: git-client-plugin, git-plugin
Created: 2018-03-26 05:46
Environment: core:2.107.1
git:3.8
git-client:2.7.1 and git-client:3.0.0-beta
Priority: Major Major
Reporter: Allan BURDAJEWICZ

Issue

Branch indexing is sometimes failing with an exception like the following:

ERROR: [Tue Mar 20 14:12:32 CET 2018] Could not fetch branches from source c77cfbf8-6ad9-4714-9ad2-07e4d80f2b2c 
org.eclipse.jgit.errors.MissingObjectException: Missing unknown 86aea335051269d6d5944b6067e7b4ccaa747f2b 
at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:158) 
at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:227) 
at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:859) 
at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:772) 
at jenkins.plugins.git.AbstractGitSCMSource$8$2.create(AbstractGitSCMSource.java:572) 
at jenkins.plugins.git.AbstractGitSCMSource$8$2.create(AbstractGitSCMSource.java:566) 
at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:341) 
at jenkins.plugins.git.AbstractGitSCMSource$8.discoverBranches(AbstractGitSCMSource.java:557) 
at jenkins.plugins.git.AbstractGitSCMSource$8.run(AbstractGitSCMSource.java:535) 
at jenkins.plugins.git.AbstractGitSCMSource$8.run(AbstractGitSCMSource.java:521) 
at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:352) 
at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:521) 
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355) 
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:265) 
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634) 
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276) 
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165) 
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:978) 
at hudson.model.ResourceController.execute(ResourceController.java:97) 
at hudson.model.Executor.run(Executor.java:421) 

Now something that I notice here is that the indexing starts at 14:10:00 CET and the error happens at 14:12:32. It seems that the revision 86aea335051269d6d5944b6067e7b4ccaa747f2b was not present at the time the changes were fetched (~2m earlier).

Digging further, *this happens when a commit happens during branch indexing.*

How To Reproduce

My Scenario:

  • Pipeline Multibranch
  • SCM Source Git SCM
  • Large repository with lot of branches (200 branches): first fetch takes > 15m
  • Filter to include 20 branches

This issue is reproducible by triggering branch indexing and committing to one of the included branches simultaneously. I can reproduce almost constantly by doing this.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 17, 2018, 3:43:02 PM6/17/18
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Component/s: git-client-plugin

rsandell@cloudbees.com (JIRA)

unread,
Apr 4, 2019, 9:54:02 AM4/4/19
to jenkinsc...@googlegroups.com
rsandell started work on Bug JENKINS-50394
 
Change By: rsandell
Status: Open In Progress
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

rsandell@cloudbees.com (JIRA)

unread,
Apr 4, 2019, 9:54:02 AM4/4/19
to jenkinsc...@googlegroups.com
rsandell assigned an issue to rsandell
Change By: rsandell
Assignee: Mark Waite rsandell

rsandell@cloudbees.com (JIRA)

unread,
Apr 11, 2019, 11:16:01 AM4/11/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 25, 2019, 9:17:03 AM4/25/19
to jenkinsc...@googlegroups.com
Mark Waite updated Bug JENKINS-50394
 

Fixed in git plugin 3.9.4 released April 24, 2019

Change By: Mark Waite
Status: In Review Resolved
Resolution: Fixed

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 25, 2019, 9:18:01 AM4/25/19
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-50394
 
Re: Branch Indexing fails with MissingObjectException
Fixed in [git plugin 3.9.4|https://plugins.jenkins.io/git#GitPlugin-ChangeLog] released April 24, 2019 and in git plugin 4.0.0-beta9 released April 24, 2019.

mark.earl.waite@gmail.com (JIRA)

unread,
Jul 13, 2019, 10:59:02 PM7/13/19
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Fixed
 
Change By: Mark Waite
Status: Resolved Closed
Reply all
Reply to author
Forward
0 new messages