Skip to content

Commit

Permalink
[INLONG-9953][Manager] Fix the problem of stop stream source failed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fuweng11 authored Apr 10, 2024
1 parent 50539a5 commit c13e355
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.apache.inlong.common.constant.MQType;
import org.apache.inlong.common.db.CommandEntity;
import org.apache.inlong.common.enums.PullJobTypeEnum;
import org.apache.inlong.common.enums.TaskStateEnum;
import org.apache.inlong.common.enums.TaskTypeEnum;
import org.apache.inlong.common.pojo.agent.CmdConfig;
import org.apache.inlong.common.pojo.agent.DataConfig;
Expand Down Expand Up @@ -672,7 +673,9 @@ private DataConfig getDataConfig(StreamSourceEntity entity, int op) {
String extParams = sourceOperator.getExtParams(entity);
if (groupEntity != null && streamEntity != null) {
dataConfig.setState(
SourceStatus.NORMAL_STATUS_SET.contains(SourceStatus.forCode(entity.getStatus())) ? 1 : 0);
SourceStatus.NORMAL_STATUS_SET.contains(SourceStatus.forCode(entity.getStatus()))
? TaskStateEnum.RUNNING.getType()
: TaskStateEnum.FROZEN.getType());
dataConfig.setSyncSend(streamEntity.getSyncSend());
if (SourceType.FILE.equalsIgnoreCase(entity.getSourceType())
&& StringUtils.isNotBlank(streamEntity.getDataSeparator())) {
Expand Down

0 comments on commit c13e355

Please sign in to comment.