vernedeng commented on code in PR #7255:
URL: https://github.com/apache/inlong/pull/7255#discussion_r1090119986
##########
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:
The NPE will be thrown when there is a stream sink of a groupId but this
groupId does not exist in inlong_group table. I will add one more filter
condition to avoid this case.
--
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]