fuweng11 commented on code in PR #7255:
URL: https://github.com/apache/inlong/pull/7255#discussion_r1090111945
##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/SortSourceServiceImpl.java:
##########
@@ -296,14 +305,26 @@ private Map<String, CacheZone> parseCacheZones(
// group them by cluster tag.
Map<String, List<SortSourceStreamSinkInfo>> tag2SinkInfos =
sinkInfoList.stream()
+ .filter(sink -> {
+ if (StringUtils.isBlank(sortClusterTag)) {
+ return true;
+ }
+ return
groupInfos.get(sink.getGroupId()).getClusterTag().equals(sortClusterTag);
Review Comment:
Maybe there will be NPE?
--
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]