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

Scheduled builds crash after running for more than 8 hours

    XMLWordPrintable

Details

    Description

      I am using VS online, TFS plugin 4.1.

      I have scheduled builds (every 5 minutes) which checkcode code using the TFS plugin. After 1 or 2 days the builds start failing and I need to restart jenkins.

      From my initial searches, I believe this is an issue with how the plugin interacts with the TFS Java sdk.

      https://social.msdn.microsoft.com/Forums/vstudio/en-US/2ace3851-8e1c-4aee-8e2d-192b0810213a/tfs-sdk-leak?forum=tee

      The workaround is to close the TFSConfigurationServer first and then close the TFSTeamProjectCollection. Future versions of the TFS SDK will take care of closing the TFSConfigurationServer AND throw an exception if you close them the other way around.

      Here is the log:

      FATAL: null
      java.lang.StackOverflowError
      at com.microsoft.tfs.util.listeners.Comparators$IdentityComparator.compare(Comparators.java:57)
      at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListenerList.java:330)
      at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListenerList.java:343)
      at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListenerList.java:343)
      at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListenerList.java:343)
      at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListenerList.java:343)

      Attachments

        Activity

          albertchu albert chu created issue -
          rtyler R. Tyler Croy made changes -
          Field Original Value New Value
          Workflow JNJira [ 171728 ] JNJira + In-Review [ 184436 ]
          kelliejos Kellie Jos made changes -
          Resolution Done [ 10000 ]
          Status Open [ 1 ] Closed [ 6 ]
          flocki Florian Pepping made changes -
          Assignee Kellie Jos [ kelliejos ]
          Resolution Done [ 10000 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          owenmehegan Owen Mehegan made changes -
          Assignee Kellie Jos [ kelliejos ] Jason Prickett [ jpricketmsft ]

          People

            jpricketmsft Jason Prickett
            albertchu albert chu
            Votes:
            12 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated: