narendly commented on a change in pull request #1169:
URL: https://github.com/apache/helix/pull/1169#discussion_r470295243
##########
File path: helix-core/src/main/java/org/apache/helix/task/TaskStateModel.java
##########
@@ -283,6 +288,75 @@ public void reset() {
}
}
+ /**
+ * Loads className using classLoader
+ * @param classLoader
+ * @param className
+ * @return Class className loaded by classLoader
+ */
+ private Class loadClass(URLClassLoader classLoader, String className) {
+ try {
+ return classLoader.loadClass(className);
+ } catch (ClassNotFoundException e) {
+ LOG.error("Failed to load Task class " + className + " for new task in
instance " + _manager
+ .getInstanceName() + " in cluster " + _manager.getClusterName() +
".");
+ throw new IllegalStateException("Class not found for task");
Review comment:
Let's make sure error messages are consistent.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]