From c4d7af92794200dc9d8068f0c1c8706aacb78aff Mon Sep 17 00:00:00 2001 From: Tboy Date: Mon, 21 Oct 2019 11:26:59 +0800 Subject: [PATCH] fix the status message (#1063) * move updateTaskState into try/catch block in case of exception * fix NPE * using conf.getInt instead of getString * for AbstractZKClient, remove the log, for it will print the same log message in createZNodePath. for AlertDao, correct the spelling. * duplicate * refactor getTaskWorkerGroupId * add friendly log * update hearbeat thread num = 1 * fix the bug when worker execute task using queue. and remove checking Tenant user anymore in TaskScheduleThread * 1. move verifyTaskInstanceIsNull after taskInstance 2. keep verifyTenantIsNull/verifyTaskInstanceIsNull clean and readable * fix the message * delete before check to avoid KeeperException$NoNodeException * fix the message --- .../apache/dolphinscheduler/api/service/AccessTokenService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/AccessTokenService.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/AccessTokenService.java index 88ecee4ab0..344e2d91fe 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/AccessTokenService.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/AccessTokenService.java @@ -117,7 +117,7 @@ public class AccessTokenService extends BaseService { if (insert > 0) { putMsg(result, Status.SUCCESS); } else { - putMsg(result, Status.CREATE_ALERT_GROUP_ERROR); + putMsg(result, Status.CREATE_ACCESS_TOKEN_ERROR); } return result;