fuweng11 commented on code in PR #5118:
URL: https://github.com/apache/inlong/pull/5118#discussion_r924622553


##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/cluster/InlongClusterServiceImpl.java:
##########
@@ -218,6 +229,9 @@ public Boolean deleteTag(Integer id, String operator) {
             LOGGER.error("inlong cluster tag not found by id={}", id);
             return false;
         }
+        String[] inChargesArr = exist.getInCharges().split(",");
+        Preconditions.checkTrue(isInCharge(inChargesArr, operator),

Review Comment:
   The `exist` have  many types, like 
`InlongClusterEntity`、`InlongClusterNodeEntity`、`InlongClusterTagEntity`, and 
it seems that few classes use this method.



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