Skip to content
Browse files


Clamp the lower bound of the predicted minimum number of idle executors
at 0 to prevent an IndexOutOfBoundsException.
(cherry picked from commit da4ddde)
  • Loading branch information
jsiirola authored and vjuranek committed Jun 17, 2011
1 parent b4b4e18 commit 8a2209fe73c5b5eef88bf2e1cffc5d3141060032
Showing with 5 additions and 0 deletions.
  1. +5 −0 core/src/main/java/hudson/model/queue/
@@ -327,6 +327,11 @@ public MappingWorksheet(BuildableItem item, List<? extends ExecutorSlot> offers,

int minIdle = max-peak; // minimum number of idle nodes during this time period
// total predicted load could exceed available executors [JENKINS-8882]
if (minIdle<0) {
// Should we toss a warning/info message?
minIdle = 0;
if (minIdle<list.size())

0 comments on commit 8a2209f

Please sign in to comment.
You can’t perform that action at this time.