Skip to content

Commit

Permalink
[INLONG-11150][Manager] Fix the problem of incorrect setting of sorTa…
Browse files Browse the repository at this point in the history
…skName for sink
  • Loading branch information
fuweng11 committed Sep 20, 2024
1 parent f1ccde4 commit 6796ddc
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ protected void checkTaskAndConsumerGroup(SinkInfo sinkInfo) {
if (!StringUtils.isAnyBlank(sinkInfo.getSortConsumerGroup(), sinkInfo.getSortTaskName())) {
return;
}
if (StringUtils.isBlank(sinkInfo.getSortConsumerGroup())) {
sinkInfo.setSortConsumerGroup(sinkInfo.getDataNodeName());
StreamSinkEntity sink = sinkEntityMapper.selectByPrimaryKey(sinkInfo.getId());
if (StringUtils.isBlank(sink.getSortConsumerGroup())) {
sink.setSortConsumerGroup(sink.getDataNodeName());
}
if (StringUtils.isBlank(sinkInfo.getSortTaskName())) {
sinkInfo.setSortTaskName(sinkInfo.getDataNodeName());
if (StringUtils.isBlank(sink.getSortTaskName())) {
sink.setSortTaskName(sink.getDataNodeName());
}
StreamSinkEntity sink = sinkEntityMapper.selectByPrimaryKey(sinkInfo.getId());
sinkEntityMapper.updateByIdSelective(sink);
}

Expand Down

0 comments on commit 6796ddc

Please sign in to comment.