[Bugfix]修复迁移任务状态不一致问题(#815)

This commit is contained in:
wyb
2022-12-08 17:02:37 +08:00
committed by EricZeng
parent 5cad7b4106
commit c4fb18a73c

View File

@@ -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();