Skip to content
Permalink
Browse files

[JENKINS-15652] More clearly distinguishing the three asserts.(cherry…

… picked from commit 6a70f69)
  • Loading branch information
jglick authored and kohsuke committed May 28, 2013
1 parent e1f617c commit 65e0f9c974f9316b6ba6b2c9fa6a73b2a8013d67
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/src/main/java/jenkins/model/lazy/AbstractLazyLoadRunMap.java
@@ -436,7 +436,7 @@ public R search(final int n, final Direction d) {
// assertion error, but we are so far unable to get to the bottom of this bug.
// but don't let this kill the loading the hard way
String msg = String.format(
"JENKINS-15652 Assertion error: failing to load %s #%d %s: lo=%d,hi=%d,size=%d,size2=%d",
"JENKINS-15652 Assertion error #1: failing to load %s #%d %s: lo=%d,hi=%d,size=%d,size2=%d",
dir, n, d, lo, hi, idOnDisk.size(), initialSize);
LOGGER.log(Level.WARNING, msg,new Exception());
throw new ArrayIndexOutOfBoundsException(msg);
@@ -448,7 +448,7 @@ public R search(final int n, final Direction d) {
// assertion error, but we are so far unable to get to the bottom of this bug.
// but don't let this kill the loading the hard way
String msg = String.format(
"JENKINS-15652Assertion error: failing to load %s #%d %s: lo=%d,hi=%d,pivot=%d,size=%d (initial:lo=%d,hi=%d,size=%d)",
"JENKINS-15652 Assertion error #2: failing to load %s #%d %s: lo=%d,hi=%d,pivot=%d,size=%d (initial:lo=%d,hi=%d,size=%d)",
dir, n, d, lo, hi, pivot, idOnDisk.size(), initialLo, initialHi, initialSize);
LOGGER.log(Level.WARNING, msg,new Exception());
throw new ArrayIndexOutOfBoundsException(msg);
@@ -489,7 +489,7 @@ public R search(final int n, final Direction d) {
// assertion error, but we are so far unable to get to the bottom of this bug.
// but don't let this kill the loading the hard way
LOGGER.log(Level.WARNING, String.format(
"JENKINS-15652 Assertion error: failing to load %s #%d %s: lo=%d,hi=%d,size=%d (initial:lo=%d,hi=%d,size=%d)",
"JENKINS-15652 Assertion error #3: failing to load %s #%d %s: lo=%d,hi=%d,size=%d (initial:lo=%d,hi=%d,size=%d)",
dir, n,d,lo,hi,idOnDisk.size(), initialLo,initialHi,initialSize),new Exception());
return null;
}

0 comments on commit 65e0f9c

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