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