mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
added a probe for detecting Descriptor not found problem, which is most likely caused by getExtensionList that's too eagerly done.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24562 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b88fa252ee
commit
b075de5f02
1 file changed
+7
@@ -37,6 +37,8 @@ import java.util.List;
|
||||
import java.util.Vector;
|
||||
import java.util.Comparator;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/**
|
||||
* Retains the known extension instances for the given type 'T'.
|
||||
@@ -187,6 +189,9 @@ public class ExtensionList<T> extends AbstractList<T> {
|
||||
* Loads all the extensions.
|
||||
*/
|
||||
protected List<T> load() {
|
||||
if (LOGGER.isLoggable(Level.FINE))
|
||||
LOGGER.log(Level.FINE,"Loading ExtensionList: "+extensionType, new Throwable());
|
||||
|
||||
List<T> r = new ArrayList<T>();
|
||||
for (ExtensionFinder finder : finders())
|
||||
r.addAll(finder.findExtensions(extensionType, hudson));
|
||||
@@ -252,4 +257,6 @@ public class ExtensionList<T> extends AbstractList<T> {
|
||||
public static void clearLegacyInstances() {
|
||||
staticLegacyInstances.clear();
|
||||
}
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(ExtensionList.class.getName());
|
||||
}
|
||||
Reference in new issue
Block a user