You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/07/13 01:41:46 UTC

[GitHub] [dolphinscheduler] caishunfeng commented on a diff in pull request #10910: [Fix-10909] Returns executionStatus for each process instance status.

caishunfeng commented on code in PR #10910:
URL: https://github.com/apache/dolphinscheduler/pull/10910#discussion_r919567437


##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java:
##########
@@ -1813,7 +1814,7 @@ protected List<TaskInstance> getRecoverTaskInstanceList(String cmdParam) {
         if (paramMap != null && paramMap.containsKey(CMD_PARAM_RECOVERY_START_NODE_STRING)) {
             String[] idList = paramMap.get(CMD_PARAM_RECOVERY_START_NODE_STRING).split(Constants.COMMA);
             if (ArrayUtils.isNotEmpty(idList)) {
-                List<Integer> taskInstanceIds = Arrays.stream(idList).map(Integer::valueOf).collect(Collectors.toList());
+                List<Integer> taskInstanceIds = Arrays.stream(idList).filter(StringUtils::isNotEmpty).map(Integer::valueOf).collect(Collectors.toList());

Review Comment:
   It's better to check empty id when setting, so we don't have to filter it anywhere we use.



##########
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/AccessTokenMapper.java:
##########
@@ -36,14 +36,14 @@ public interface AccessTokenMapper extends BaseMapper<AccessToken> {
     /**
      * access token page
      *
+     * @param ids
      * @param page page
      * @param userName userName
-     * @param userId userId
      * @return access token Ipage
      */
     IPage<AccessToken> selectAccessTokenPage(Page page,
-                                             @Param("userName") String userName,
-                                             @Param("userId") int userId
+                                             @Param("ids") List<Integer> ids,

Review Comment:
   ```suggestion
                                                @Param("ids") List<Integer> tokenIds,
   ```



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

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org