• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Jenkins ver. 1.480.3

      At Load statistics, it showing busy executors in minus(negative).
      which seems wrong. it should be in plus .

      please share fix for this.

          [JENKINS-21618] wrong Load statistics: busy executors in minus

          hiteswar kumar created issue -
          Daniel Beck made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]

          Version 1.480 is very old. Are you able to reproduce this with a newer Jenkins version?

          Christopher Orr added a comment - Version 1.480 is very old. Are you able to reproduce this with a newer Jenkins version?

          hiteswar kumar added a comment - - edited

          i am running Latest Jenkins ver. 1.532.2 and found same sometime.
          i think , this(negative busy executors) is because of offline slave because of launch failure.
          i am not sure is it right way to put offline slaves statistics at load statistics page in this way. somewhere else right place.

          hiteswar kumar added a comment - - edited i am running Latest Jenkins ver. 1.532.2 and found same sometime. i think , this(negative busy executors) is because of offline slave because of launch failure. i am not sure is it right way to put offline slaves statistics at load statistics page in this way. somewhere else right place.

          Daniel Beck added a comment -

          Please provide complete and detailed instructions on how to reproduce this issue on recent Jenkins versions, i.e. 1.554.x or 1.560 or higher.

          FWIW 1.532.2 hasn't been the "latest" in a long time.

          Daniel Beck added a comment - Please provide complete and detailed instructions on how to reproduce this issue on recent Jenkins versions, i.e. 1.554.x or 1.560 or higher. FWIW 1.532.2 hasn't been the "latest" in a long time.

          Daniel Beck added a comment -

          Issue seems obvious form the code:

          • LoadStatistics' "busy executors" count is (total - idle), but their definition in ComputerSet is inconsistent:
            • total: those that are online
            • idle: those that are (online or connecting) and accepting work

          So nodes currently being connected are counted for the latter, not the former. IOW, you can have 0 total executors but >0 idle executors, leading to negative "busy" counts.

          Daniel Beck added a comment - Issue seems obvious form the code: LoadStatistics' "busy executors" count is (total - idle), but their definition in ComputerSet is inconsistent: total: those that are online idle: those that are (online or connecting) and accepting work So nodes currently being connected are counted for the latter, not the former. IOW, you can have 0 total executors but >0 idle executors, leading to negative "busy" counts.
          Daniel Beck made changes -
          Assignee New: Daniel Beck [ danielbeck ]
          Daniel Beck made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Beck made changes -
          Remote Link New: This issue links to "PR 1312 (Web Link)" [ 11104 ]

          Alexis Morelle added a comment - - edited

          Got the same in Jenkins ver. 1.565.2
          Daniel's comment is relevant, seems to always come with a negative spike of available executors.

          – nevermind... didn't see the PR.

          Alexis Morelle added a comment - - edited Got the same in Jenkins ver. 1.565.2 Daniel's comment is relevant, seems to always come with a negative spike of available executors. – nevermind... didn't see the PR.

            danielbeck Daniel Beck
            hiteswar_kumar hiteswar kumar
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: