mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-08 07:32:11 +08:00
[Bugfix]修复迁移任务状态不一致问题(#815)
This commit is contained in:
@@ -508,8 +508,9 @@ public class ReassignJobServiceImpl implements ReassignJobService {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!topicPartitions.isEmpty()){
|
//无论优先副本选举是否成功,都返回成功,以保证job的数据更新
|
||||||
return opPartitionService.preferredReplicaElection(jobPO.getClusterPhyId(), topicPartitions);
|
if (!topicPartitions.isEmpty()) {
|
||||||
|
opPartitionService.preferredReplicaElection(jobPO.getClusterPhyId(), topicPartitions);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Result.buildSuc();
|
return Result.buildSuc();
|
||||||
|
|||||||
Reference in New Issue
Block a user