imvan commented on a change in pull request #2439:
URL: https://github.com/apache/incubator-inlong/pull/2439#discussion_r804474496



##########
File path: 
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/SortServiceImpl.java
##########
@@ -80,12 +83,14 @@ public SortClusterConfigResponse getClusterConfig(String 
clusterName, String md5
     private SortTaskConfig getTaskConfig(SortClusterConfigEntity 
clusterConfig) {
         List<Map<String, String>> idParams =
                 
sortTaskIdParamService.selectByTaskName(clusterConfig.getTaskName());
-        // TODO add method that get sink params
+        Map<String, String> sinkParams =
+                sortTaskSinkParamService
+                        .selectByTaskNameAndType(clusterConfig.getTaskName(), 
clusterConfig.getSinkType());
         return SortTaskConfig.builder()
                 .taskName(clusterConfig.getTaskName())
                 
.sinkType(SinkType.valueOf(clusterConfig.getSinkType().toUpperCase()))

Review comment:
       fixed, the illegalArgument exception will be catched in upper method, 
and the response to user.
   
![image](https://user-images.githubusercontent.com/45282474/153566106-195494e3-fff5-4c71-87ec-27dcd974cb2b.png)
   




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to