You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by do...@apache.org on 2022/04/02 06:40:37 UTC
[incubator-inlong] branch master updated: [INLONG-3510][Manager] Return empty object when not found any inlong group with success status (#3513)
This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 3b523fd [INLONG-3510][Manager] Return empty object when not found any inlong group with success status (#3513)
3b523fd is described below
commit 3b523fd44455c369ac94773bf5ddd4b5ba9943d8
Author: dockerzhang <do...@apache.org>
AuthorDate: Sat Apr 2 14:40:33 2022 +0800
[INLONG-3510][Manager] Return empty object when not found any inlong group with success status (#3513)
---
bin/inlong-daemon | 2 +-
.../manager/service/core/impl/ThirdPartyClusterServiceImpl.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/inlong-daemon b/bin/inlong-daemon
index a67b016..4922024 100644
--- a/bin/inlong-daemon
+++ b/bin/inlong-daemon
@@ -108,7 +108,7 @@ start_inlong_dashboard() {
if [[ "$manager_server_hostname" == "localhost" || "$manager_server_hostname" == "127.0.0.1" ]]; then
manager_server_hostname=$local_ip
fi
- docker run -d --name dashboard -e MANAGER_API_ADDRESS=$manager_server_hostname:$manager_server_port -p ${dashboard_port}:80 ${dashboard_docker_image}
+ docker run -d --name dashboard -e MANAGER_API_ADDRESS=${local_ip}:${manager_server_port} -p ${dashboard_mapping_port}:80 ${dashboard_docker_image}
}
start_inlong_dataproxy() {
diff --git a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/ThirdPartyClusterServiceImpl.java b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/ThirdPartyClusterServiceImpl.java
index 4782abb..b3fe99e 100644
--- a/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/ThirdPartyClusterServiceImpl.java
+++ b/inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/ThirdPartyClusterServiceImpl.java
@@ -284,11 +284,12 @@ public class ThirdPartyClusterServiceImpl implements ThirdPartyClusterService {
}
// TODO Optimize query conditions use dataProxyClusterId
+ ThirdPartyClusterDTO object = new ThirdPartyClusterDTO();
List<InlongGroupEntity> groupEntityList = groupMapper.selectAll(GroupState.CONFIG_SUCCESSFUL.getCode());
if (CollectionUtils.isEmpty(groupEntityList)) {
String msg = "not found any inlong group with success status for proxy cluster name = " + clusterName;
LOGGER.warn(msg);
- throw new BusinessException(msg);
+ return object;
}
// third-party-cluster type
@@ -342,7 +343,6 @@ public class ThirdPartyClusterServiceImpl implements ThirdPartyClusterService {
mqSet.add(clusterInfo);
}
- ThirdPartyClusterDTO object = new ThirdPartyClusterDTO();
object.setMqSet(mqSet);
object.setTopicList(topicList);