healchow commented on code in PR #6002: URL: https://github.com/apache/inlong/pull/6002#discussion_r978423964
########## inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/listener/sort/StreamSortConfigListener.java: ########## @@ -62,18 +60,15 @@ public TaskEvent event() { @Override public boolean accept(WorkflowContext context) { ProcessForm processForm = context.getProcessForm(); + String className = processForm.getClass().getSimpleName(); String groupId = processForm.getInlongGroupId(); - if (!(processForm instanceof GroupResourceProcessForm)) { - LOGGER.warn("zookeeper enabled was [false] for groupId [{}]", groupId); + if (processForm instanceof GroupResourceProcessForm || processForm instanceof StreamResourceProcessForm) { Review Comment: Only need to check `StreamResourceProcessForm`, because the following `listen` method casts `ProcessForm` to `StreamResourceProcessForm`. -- 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-unsubscr...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org