mgao0 commented on a change in pull request #1169:
URL: https://github.com/apache/helix/pull/1169#discussion_r460228586
##########
File path: helix-core/src/main/java/org/apache/helix/task/TaskStateModel.java
##########
@@ -283,6 +289,36 @@ public void reset() {
}
}
+ /**
+ * Loads Task and TaskFactory classes for command input
+ */
+ private boolean loadNewTask(String command) {
+ try {
+ // Read ZNRecord containing task definition information.
+ ZNRecord taskConfig =
_manager.getHelixDataAccessor().getBaseDataAccessor()
Review comment:
If this path doesn't exist, does it throw exception here or return null?
If exception, do we need to handle the exception? If null, we need to do a
check in the next line of code to prevent NPE.
----------------------------------------------------------------
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]