You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "kipshi (via GitHub)" <gi...@apache.org> on 2023/07/13 03:05:22 UTC

[GitHub] [inlong] kipshi commented on a diff in pull request #8523: [INLONG-8522][Manager] optimize log print and status judgement in preProcessLabelFileTasks

kipshi commented on code in PR #8523:
URL: https://github.com/apache/inlong/pull/8523#discussion_r1261925760


##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/AgentServiceImpl.java:
##########
@@ -477,12 +477,12 @@ private void preProcessLabelFileTasks(TaskRequest taskRequest) {
                     SourceStatus.SOURCE_NORMAL,
                     SourceStatus.TO_BE_ISSUED_ADD,
                     SourceStatus.TO_BE_ISSUED_ACTIVE);
-            Set<GroupStatus> exceptedMatchedGroupStatus = Sets.newHashSet(GroupStatus.SUSPENDED,
-                    GroupStatus.SUSPENDING);
+            Set<GroupStatus> matchedGroupStatus = Sets.newHashSet(
+                    GroupStatus.CONFIG_SUCCESSFUL, GroupStatus.RESTARTED);
             if (matchGroup(sourceEntity, clusterNodeEntity)
                     && groupEntity != null
                     && !exceptedMatchedSourceStatus.contains(SourceStatus.forCode(sourceEntity.getStatus()))
-                    && !exceptedMatchedGroupStatus.contains(GroupStatus.forCode(groupEntity.getStatus()))) {
+                    && matchedGroupStatus.contains(GroupStatus.forCode(groupEntity.getStatus()))) {

Review Comment:
   look again



-- 
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@inlong.apache.org

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