fix(sj_1.2.0-beta2): 判断 batchReportMapTask 返回逻辑错误
This commit is contained in:
parent
5ca1806bbf
commit
19b13992cd
@ -84,7 +84,7 @@ public final class MapInvokeHandler implements InvocationHandler {
|
||||
|
||||
// 2. 同步发送请求
|
||||
Result<Boolean> result = CLIENT.batchReportMapTask(mapTaskRequest);
|
||||
if (StatusEnum.NO.getStatus() == result.getStatus() || result.getData()) {
|
||||
if (StatusEnum.YES.getStatus() == result.getStatus() || result.getData()) {
|
||||
SnailJobLog.LOCAL.info("Map task create successfully!. taskName:[{}] TaskId:[{}] ", nextTaskName, jobContext.getTaskId());
|
||||
} else {
|
||||
throw new SnailJobMapReduceException("map failed for task: " + nextTaskName);
|
||||
|
Loading…
Reference in New Issue
Block a user