Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 19/Mar/15 5:28 PM
Description:

After upgrading Jenkins to 1.599 all executors start dying because of the error below. All my jobs are configured to discard old builds.

java.lang.IllegalStateException: cannot create a build with number 1447 since that (or higher) is already in use among [1415, 1416, 1417, 1418, 1419, 1420, 1421, 1422, 1423, 5288]
at jenkins.model.lazy.AbstractLazyLoadRunMap.proposeNewNumber(AbstractLazyLoadRunMap.java:361)
at hudson.model.RunMap.put(RunMap.java:189)
at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:178)
at hudson.model.AbstractProject.newBuild(AbstractProject.java:1006)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:1205)
at hudson.model.AbstractProject.createExecutable(AbstractProject.java:144)
at hudson.model.Executor.run(Executor.java:213)

I could see that the method SortedIntList.isInRange does not check the list content. So I changed it to the code below and everything worked fine.

public boolean isInRange(int idx) { return find(idx)>-1; }

I will make a pull request with this solution.

Environment: Linux Suse, Tomcat 7.0.27, JDK 1.6.0_29
Project: Jenkins
Priority: Critical Critical
Reporter: Ajay Kumar
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to