[branch-2.1] Picks "[opt](delete) Delete job should retry for failure that is not DELETE_INVALID_XXX #37834" (#38032)
## Proposed changes picks https://github.com/apache/doris/pull/37834 and https://github.com/apache/doris/pull/38043
This commit is contained in:
@ -305,10 +305,10 @@ public class MasterImpl {
|
||||
|
||||
if (request.getTaskStatus().getStatusCode() != TStatusCode.OK) {
|
||||
if (pushTask.getPushType() == TPushType.DELETE) {
|
||||
// DeleteHandler may return status code DELETE_INVALID_CONDITION and DELETE_INVALID_PARAMETERS,
|
||||
// we don't need to retry if meet them.
|
||||
// note that they will be converted to TStatusCode.INTERNAL_ERROR when being sent from be to fe
|
||||
if (request.getTaskStatus().getStatusCode() == TStatusCode.INTERNAL_ERROR) {
|
||||
// we don't need to retry if the returned status code is DELETE_INVALID_CONDITION
|
||||
// or DELETE_INVALID_PARAMETERS
|
||||
// note that they will be converted to TStatusCode.INVALID_ARGUMENT when being sent from be to fe
|
||||
if (request.getTaskStatus().getStatusCode() == TStatusCode.INVALID_ARGUMENT) {
|
||||
pushTask.countDownToZero(request.getTaskStatus().getStatusCode(),
|
||||
task.getBackendId() + ": " + request.getTaskStatus().getErrorMsgs().toString());
|
||||
AgentTaskQueue.removeTask(backendId, TTaskType.REALTIME_PUSH, signature);
|
||||
|
||||
Reference in New Issue
Block a user