gaojun2048 commented on a change in pull request #3659:
URL: 
https://github.com/apache/incubator-dolphinscheduler/pull/3659#discussion_r494677145



##########
File path: 
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterExecThread.java
##########
@@ -651,14 +653,22 @@ private void setTaskNodeSkip(List<String> 
taskNodesSkipList){
      * submit post node
      * @param parentNodeName parent node name
      */
+    private Map<String,Object> propToValue = new ConcurrentHashMap<String, 
Object>();
     private void submitPostNode(String parentNodeName){
 
         List<String> submitTaskNodeList = parsePostNodeList(parentNodeName);
 
         List<TaskInstance> taskInstances = new ArrayList<>();
         for(String taskNode : submitTaskNodeList){
+            try {
+                VarPoolUtils.convertVarPoolToMap(propToValue, 
processInstance.getVarPool());
+            } catch (ParseException e) {
+                logger.error("parse {} exception", 
processInstance.getVarPool(), e);

Review comment:
       Some times varpool may updated by other people in some case . So , if 
the value of varpool not normal and can not convert to map , you can throw a 
RuntimeException.




----------------------------------------------------------------
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]


Reply via email to