|
||||||||
|
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Code changed in jenkins
User: Stephen Connolly
Path:
core/src/main/java/hudson/model/Label.java
core/src/main/java/hudson/model/LoadStatistics.java
core/src/main/java/hudson/model/OverallLoadStatistics.java
core/src/main/java/hudson/slaves/NodeProvisioner.java
core/src/main/java/jenkins/model/Jenkins.java
core/src/main/java/jenkins/model/UnlabeledLoadStatistics.java
core/src/main/resources/hudson/model/Messages.properties
core/src/test/java/hudson/model/LoadStatisticsTest.java
http://jenkins-ci.org/commit/jenkins/6b8af39b0317bad90851d4f8025fd71fadb9deaa
Log:
[FIXED JENKINS-21618] Ensure that the LoadStatistics return a self-consistent result.
The original method of computing load statistics would compute the total and idle counts independently
which could lead to counting errors while jobs started in between the different state counting operations.
This change switches to returning a `LoadStatisticsSnapshot` so that callers will get a single consistent
view of the counts which was valid for at least one point in time during the collection of the snapshot.