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

Project list is not updating in desired interval

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • gerrit-trigger-plugin
    • None
    • Gerrit 2.11.4
      Gerrit Trigger 2.17.2
      Jenkins 1.637

    Description

      Project list is not updating in desired interval. Problem is in GerritServer.java in start() method, where projectListUpdater is created but isProjectCreatedEventsSupported() returns "true". It is because gerritConnection is not yet established, getGerritVersion() returns null and feature.versionNumber.isNewerThan returns false for NaN parameter.
      Initializing of projectListUpdater should be delayed after gerritConnection is initialized.

      Same problem with missedEventsPlaybackManager.isSupported() in GerritServer.java - start() when Gerrit server is up later than Jenkins.

      Also server connection Stop/Start should trigger project list update.

      I have Jenkins on different machine than Gerrit so connection could take a second.

      -------
      See attached log file
      Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker getGerritVersion
      SEVERE: Could not find the Gerrit version for vyvoj.zat.lan
      Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker createVersionNumber
      SEVERE: Gerrit version number is null or the empty string.
      Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.GerritServer start
      INFO: vyvoj.zat.lan started
      Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.GerritProjectListUpdater tryLoadProjectList
      INFO: Not connected to vyvoj.zat.lan, waiting for 1 second(s)

      Attachments

        Issue Links

          Activity

            engy Jiří Engelthaler created issue -
            engy Jiří Engelthaler made changes -
            Field Original Value New Value
            Description Project list is not updating in desired interval. Problem is in GerritServer.java in start() method, where projectListUpdater is created but isProjectCreatedEventsSupported() returns "true". It is because gerritConnection is not yet established, getGerritVersion() returns null and feature.versionNumber.isNewerThan returns false for NaN parameter.
            Initializing of projectListUpdater should be delayed after gerritConnection is initialized.

            Also missedEventsPlaybackManager.isSupported() in GerritServer.java - start() should be delayed after gerritConnection is initialized (maybe this should resolve JENKINS-31439)

            I have Jenkins on different machine than Gerrit so connection could take a second.

            -------
            See attached log file
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker getGerritVersion
            SEVERE: Could not find the Gerrit version for vyvoj.zat.lan
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker createVersionNumber
            {color:red}*SEVERE: Gerrit version number is null or the empty string.*{color}
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.GerritServer start
            INFO: vyvoj.zat.lan started
            Nov 10, 2015 11:41:58 AM {color:red}*com.sonyericsson.hudson.plugins.gerrit.trigger.GerritProjectListUpdater tryLoadProjectList*{color}
            INFO: Not connected to vyvoj.zat.lan, waiting for 1 second(s)
            Project list is not updating in desired interval. Problem is in GerritServer.java in start() method, where projectListUpdater is created but isProjectCreatedEventsSupported() returns "true". It is because gerritConnection is not yet established, getGerritVersion() returns null and feature.versionNumber.isNewerThan returns false for NaN parameter.
            Initializing of projectListUpdater should be delayed after gerritConnection is initialized.

            I have Jenkins on different machine than Gerrit so connection could take a second.

            -------
            See attached log file
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker getGerritVersion
            SEVERE: Could not find the Gerrit version for vyvoj.zat.lan
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker createVersionNumber
            {color:red}*SEVERE: Gerrit version number is null or the empty string.*{color}
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.GerritServer start
            INFO: vyvoj.zat.lan started
            Nov 10, 2015 11:41:58 AM {color:red}*com.sonyericsson.hudson.plugins.gerrit.trigger.GerritProjectListUpdater tryLoadProjectList*{color}
            INFO: Not connected to vyvoj.zat.lan, waiting for 1 second(s)
            engy Jiří Engelthaler made changes -
            Description Project list is not updating in desired interval. Problem is in GerritServer.java in start() method, where projectListUpdater is created but isProjectCreatedEventsSupported() returns "true". It is because gerritConnection is not yet established, getGerritVersion() returns null and feature.versionNumber.isNewerThan returns false for NaN parameter.
            Initializing of projectListUpdater should be delayed after gerritConnection is initialized.

            I have Jenkins on different machine than Gerrit so connection could take a second.

            -------
            See attached log file
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker getGerritVersion
            SEVERE: Could not find the Gerrit version for vyvoj.zat.lan
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker createVersionNumber
            {color:red}*SEVERE: Gerrit version number is null or the empty string.*{color}
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.GerritServer start
            INFO: vyvoj.zat.lan started
            Nov 10, 2015 11:41:58 AM {color:red}*com.sonyericsson.hudson.plugins.gerrit.trigger.GerritProjectListUpdater tryLoadProjectList*{color}
            INFO: Not connected to vyvoj.zat.lan, waiting for 1 second(s)
            Project list is not updating in desired interval. Problem is in GerritServer.java in start() method, where projectListUpdater is created but isProjectCreatedEventsSupported() returns "true". It is because gerritConnection is not yet established, getGerritVersion() returns null and feature.versionNumber.isNewerThan returns false for NaN parameter.
            Initializing of projectListUpdater should be delayed after gerritConnection is initialized.

            Also server connection Stop/Start should trigger project list update.

            I have Jenkins on different machine than Gerrit so connection could take a second.

            -------
            See attached log file
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker getGerritVersion
            SEVERE: Could not find the Gerrit version for vyvoj.zat.lan
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker createVersionNumber
            {color:red}*SEVERE: Gerrit version number is null or the empty string.*{color}
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.GerritServer start
            INFO: vyvoj.zat.lan started
            Nov 10, 2015 11:41:58 AM {color:red}*com.sonyericsson.hudson.plugins.gerrit.trigger.GerritProjectListUpdater tryLoadProjectList*{color}
            INFO: Not connected to vyvoj.zat.lan, waiting for 1 second(s)
            engy Jiří Engelthaler made changes -
            Description Project list is not updating in desired interval. Problem is in GerritServer.java in start() method, where projectListUpdater is created but isProjectCreatedEventsSupported() returns "true". It is because gerritConnection is not yet established, getGerritVersion() returns null and feature.versionNumber.isNewerThan returns false for NaN parameter.
            Initializing of projectListUpdater should be delayed after gerritConnection is initialized.

            Also server connection Stop/Start should trigger project list update.

            I have Jenkins on different machine than Gerrit so connection could take a second.

            -------
            See attached log file
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker getGerritVersion
            SEVERE: Could not find the Gerrit version for vyvoj.zat.lan
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker createVersionNumber
            {color:red}*SEVERE: Gerrit version number is null or the empty string.*{color}
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.GerritServer start
            INFO: vyvoj.zat.lan started
            Nov 10, 2015 11:41:58 AM {color:red}*com.sonyericsson.hudson.plugins.gerrit.trigger.GerritProjectListUpdater tryLoadProjectList*{color}
            INFO: Not connected to vyvoj.zat.lan, waiting for 1 second(s)
            Project list is not updating in desired interval. Problem is in GerritServer.java in start() method, where projectListUpdater is created but isProjectCreatedEventsSupported() returns "true". It is because gerritConnection is not yet established, getGerritVersion() returns null and feature.versionNumber.isNewerThan returns false for NaN parameter.
            Initializing of projectListUpdater should be delayed after gerritConnection is initialized.

            Same problem with missedEventsPlaybackManager.isSupported() in GerritServer.java - start() when Gerrit server is up later than Jenkins.

            Also server connection Stop/Start should trigger project list update.

            I have Jenkins on different machine than Gerrit so connection could take a second.

            -------
            See attached log file
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker getGerritVersion
            SEVERE: Could not find the Gerrit version for vyvoj.zat.lan
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker createVersionNumber
            {color:red}*SEVERE: Gerrit version number is null or the empty string.*{color}
            Nov 10, 2015 11:41:58 AM com.sonyericsson.hudson.plugins.gerrit.trigger.GerritServer start
            INFO: vyvoj.zat.lan started
            Nov 10, 2015 11:41:58 AM {color:red}*com.sonyericsson.hudson.plugins.gerrit.trigger.GerritProjectListUpdater tryLoadProjectList*{color}
            INFO: Not connected to vyvoj.zat.lan, waiting for 1 second(s)
            scoheb Scott Hebert made changes -
            Assignee rsandell [ rsandell ] Scott Hebert [ scoheb ]
            scoheb Scott Hebert made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            jhansche Joe Hansche made changes -
            Link This issue is related to JENKINS-31800 [ JENKINS-31800 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 166852 ] JNJira + In-Review [ 198060 ]

            People

              scoheb Scott Hebert
              engy Jiří Engelthaler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: