From ab2774362f1d5a5510b99a4b8f02236e8ca23d6c Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Mon, 20 May 2013 13:04:27 -0400 Subject: [PATCH] [JENKINS-15652] Include directory in assertion messages so it is possible to tell which project is broken. --- .../jenkins/model/lazy/AbstractLazyLoadRunMap.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/jenkins/model/lazy/AbstractLazyLoadRunMap.java b/core/src/main/java/jenkins/model/lazy/AbstractLazyLoadRunMap.java index c81c4d4e80..92a6100fa6 100644 --- a/core/src/main/java/jenkins/model/lazy/AbstractLazyLoadRunMap.java +++ b/core/src/main/java/jenkins/model/lazy/AbstractLazyLoadRunMap.java @@ -436,8 +436,8 @@ public abstract class AbstractLazyLoadRunMap extends AbstractMap i // 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( - "Assertion error: failing to load #%d %s: lo=%d,hi=%d,size=%d,size2=%d", - n, d, lo, hi, idOnDisk.size(), initialSize); + "JENKINS-15652 Assertion error: 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,8 +448,8 @@ public abstract class AbstractLazyLoadRunMap extends AbstractMap i // 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( - "Assertion error: failing to load #%d %s: lo=%d,hi=%d,pivot=%d,size=%d (initial:lo=%d,hi=%d,size=%d)", - n, d, lo, hi, pivot, idOnDisk.size(), initialLo, initialHi, initialSize); + "JENKINS-15652Assertion error: 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,8 +489,8 @@ public abstract class AbstractLazyLoadRunMap extends AbstractMap i // 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( - "Assertion error: failing to load #%d %s: lo=%d,hi=%d,size=%d (initial:lo=%d,hi=%d,size=%d)", - n,d,lo,hi,idOnDisk.size(), initialLo,initialHi,initialSize),new Exception()); + "JENKINS-15652 Assertion error: 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; } return getById(idOnDisk.get(lo-1)); -- GitLab