Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58439

Repo plugin - java.lang.StackOverflowError (getLastState issue)

XMLWordPrintable

      Use case:

      Start job (creates repo tool snapshot.xml from current state)
          |
          Worker job
               |_ Build stage1
               |_ Build stage2
               |_ Build stage3

      Start job uses SCM (gerrit repo) polling mechanism (freestyle job)
      Worker job is pipeline job which takes snapshot as an input from "Start job"
      Snapshot is passed to worker build stages which are run paralelly
      Every build stage contains of activities:

      • assign dedicated node with clean workspace (node always have only one executor available, it's not possible to run parallel builds on this node)
      • launch repo tool:
      • init using snapshot
      • repo sync
        Until now everything works properly, then.. some repo plugin methods are executed resulting witt error:

      13:38:36 java.lang.StackOverflowError
      13:38:36 at hudson.model.Actionable.getAction(Actionable.java:330)
      13:38:36 at hudson.plugins.repo.RepoScm.getLastState(RepoScm.java:900)
      13:38:36 at hudson.plugins.repo.RepoScm.getLastState(RepoScm.java:907)
      13:38:36 at hudson.plugins.repo.RepoScm.getLastState(RepoScm.java:907)
      13:38:36 at hudson.plugins.repo.RepoScm.getLastState(RepoScm.java:907)
      13:38:36 at hudson.plugins.repo.RepoScm.getLastState(RepoScm.java:907)
      13:38:36 at hudson.plugins.repo.RepoScm.getLastState(RepoScm.java:907)
      13:38:36 at hudson.plugins.repo.RepoScm.getLastState(RepoScm.java:907)
      13:38:36 at hudson.plugins.repo.RepoScm.getLastState(RepoScm.java:907)
      ...

      It seems that it can't get needed information and it happens occasionally.
      I observe that problems occurs more often if more parallel build stages are run.

            Unassigned Unassigned
            tdudala tdudala
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: