This is an automated email from the ASF dual-hosted git repository.

aloyszhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new a3dd2a9a8a [INLONG-10975][Manager] Fix the problem of when saving the 
group, only the existence of the groupid under the current tenant was verified 
(#10976)
a3dd2a9a8a is described below

commit a3dd2a9a8ae2dcbbda476ffb3a1154da9b45ee1d
Author: fuweng11 <[email protected]>
AuthorDate: Mon Sep 2 14:15:54 2024 +0800

    [INLONG-10975][Manager] Fix the problem of when saving the group, only the 
existence of the groupid under the current tenant was verified (#10976)
---
 .../apache/inlong/manager/service/group/InlongGroupServiceImpl.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/group/InlongGroupServiceImpl.java
 
b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/group/InlongGroupServiceImpl.java
index 5440768191..3ee94a23ce 100644
--- 
a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/group/InlongGroupServiceImpl.java
+++ 
b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/group/InlongGroupServiceImpl.java
@@ -205,7 +205,7 @@ public class InlongGroupServiceImpl implements 
InlongGroupService {
         Preconditions.expectNotNull(request, "inlong group request cannot be 
empty");
 
         String groupId = request.getInlongGroupId();
-        InlongGroupEntity entity = groupMapper.selectByGroupId(groupId);
+        InlongGroupEntity entity = 
groupMapper.selectByGroupIdWithoutTenant(groupId);
         if (entity != null) {
             LOGGER.error("groupId={} has already exists", groupId);
             throw new BusinessException(ErrorCodeEnum.GROUP_DUPLICATE);
@@ -278,7 +278,7 @@ public class InlongGroupServiceImpl implements 
InlongGroupService {
     @Override
     public Boolean exist(String groupId) {
         Preconditions.expectNotNull(groupId, 
ErrorCodeEnum.GROUP_ID_IS_EMPTY.getMessage());
-        InlongGroupEntity entity = groupMapper.selectByGroupId(groupId);
+        InlongGroupEntity entity = 
groupMapper.selectByGroupIdWithoutTenant(groupId);
         LOGGER.debug("success to check inlong group {}, exist? {}", groupId, 
entity != null);
         return entity != null;
     }

Reply via email to