Skip to content

Commit

Permalink
[INLONG-10834][Manager] Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fuweng11 committed Aug 21, 2024
1 parent 5a80a36 commit 87232cf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public boolean refresh(String clusterTag, String operator) {
.typeList(Arrays.asList(ClusterType.TUBEMQ, ClusterType.PULSAR, ClusterType.KAFKA))
.build();
List<InlongClusterEntity> clusterEntityList = clusterEntityMapper.selectByCondition(request);
if (CollectionUtils.isEmpty(clusterEntityList)) {
throw new BusinessException("Current cluster tag not contain MQ clusters");
}
List<String> typeList = clusterEntityList.stream().map(InlongClusterEntity::getType).distinct().collect(
Collectors.toList());
if (CollectionUtils.isNotEmpty(typeList) && typeList.size() > 1) {
Expand Down

0 comments on commit 87232cf

Please sign in to comment.