HBASE-9120 ClassFinder logs errors that are not
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1582944 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
177bbff391
commit
64dff91895
|
@ -133,7 +133,7 @@ public class ClassFinder {
|
||||||
try {
|
try {
|
||||||
jarFile = new JarInputStream(new FileInputStream(jarFileName));
|
jarFile = new JarInputStream(new FileInputStream(jarFileName));
|
||||||
} catch (IOException ioEx) {
|
} catch (IOException ioEx) {
|
||||||
LOG.error("Failed to look for classes in " + jarFileName + ": " + ioEx);
|
LOG.warn("Failed to look for classes in " + jarFileName + ": " + ioEx);
|
||||||
throw ioEx;
|
throw ioEx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ public class ClassFinder {
|
||||||
if (!proceedOnExceptions) {
|
if (!proceedOnExceptions) {
|
||||||
throw ioEx;
|
throw ioEx;
|
||||||
}
|
}
|
||||||
LOG.error("Failed to get next entry from " + jarFileName + ": " + ioEx);
|
LOG.warn("Failed to get next entry from " + jarFileName + ": " + ioEx);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (entry == null) {
|
if (entry == null) {
|
||||||
|
@ -172,7 +172,7 @@ public class ClassFinder {
|
||||||
Class<?> c = makeClass(className, proceedOnExceptions);
|
Class<?> c = makeClass(className, proceedOnExceptions);
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
if (!classes.add(c)) {
|
if (!classes.add(c)) {
|
||||||
LOG.error("Ignoring duplicate class " + className);
|
LOG.warn("Ignoring duplicate class " + className);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -186,13 +186,13 @@ public class ClassFinder {
|
||||||
boolean proceedOnExceptions) throws ClassNotFoundException, LinkageError {
|
boolean proceedOnExceptions) throws ClassNotFoundException, LinkageError {
|
||||||
Set<Class<?>> classes = new HashSet<Class<?>>();
|
Set<Class<?>> classes = new HashSet<Class<?>>();
|
||||||
if (!baseDirectory.exists()) {
|
if (!baseDirectory.exists()) {
|
||||||
LOG.error("Failed to find " + baseDirectory.getAbsolutePath());
|
LOG.warn("Failed to find " + baseDirectory.getAbsolutePath());
|
||||||
return classes;
|
return classes;
|
||||||
}
|
}
|
||||||
|
|
||||||
File[] files = baseDirectory.listFiles(this.fileFilter);
|
File[] files = baseDirectory.listFiles(this.fileFilter);
|
||||||
if (files == null) {
|
if (files == null) {
|
||||||
LOG.error("Failed to get files from " + baseDirectory.getAbsolutePath());
|
LOG.warn("Failed to get files from " + baseDirectory.getAbsolutePath());
|
||||||
return classes;
|
return classes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,7 +207,7 @@ public class ClassFinder {
|
||||||
Class<?> c = makeClass(className, proceedOnExceptions);
|
Class<?> c = makeClass(className, proceedOnExceptions);
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
if (!classes.add(c)) {
|
if (!classes.add(c)) {
|
||||||
LOG.error("Ignoring duplicate class " + className);
|
LOG.warn("Ignoring duplicate class " + className);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue