status
stringclasses
1 value
repo_name
stringclasses
31 values
repo_url
stringclasses
31 values
issue_id
int64
1
104k
title
stringlengths
4
233
body
stringlengths
0
186k
issue_url
stringlengths
38
56
pull_url
stringlengths
37
54
before_fix_sha
stringlengths
40
40
after_fix_sha
stringlengths
40
40
report_datetime
unknown
language
stringclasses
5 values
commit_datetime
unknown
updated_file
stringlengths
7
188
chunk_content
stringlengths
1
1.03M
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String ORG_QUARTZ_SCHEDULER_INSTANCEID = "org.quartz.scheduler.instanceId"; public static final String ORG_QUARTZ_SCHEDULER_MAKESCHEDULERTHREADDAEMON = "org.quartz.scheduler.makeSchedulerThreadDaemon"; public static final String ORG_QUARTZ_JOBSTORE_USEPROPERTIES = "org.quartz.jobStore.useProperties"; public static final String ORG_QUARTZ_THREADPOOL_CLASS = "org.quartz.threadPool.class"; public static final String ORG_QUARTZ_THREADPOOL_THREADCOUNT = "org.quartz.threadPool.threadCount"; public static final String ORG_QUARTZ_THREADPOOL_MAKETHREADSDAEMONS = "org.quartz.threadPool.makeThreadsDaemons"; public static final String ORG_QUARTZ_THREADPOOL_THREADPRIORITY = "org.quartz.threadPool.threadPriority"; public static final String ORG_QUARTZ_JOBSTORE_CLASS = "org.quartz.jobStore.class"; public static final String ORG_QUARTZ_JOBSTORE_TABLEPREFIX = "org.quartz.jobStore.tablePrefix"; public static final String ORG_QUARTZ_JOBSTORE_ISCLUSTERED = "org.quartz.jobStore.isClustered"; public static final String ORG_QUARTZ_JOBSTORE_MISFIRETHRESHOLD = "org.quartz.jobStore.misfireThreshold"; public static final String ORG_QUARTZ_JOBSTORE_CLUSTERCHECKININTERVAL = "org.quartz.jobStore.clusterCheckinInterval"; public static final String ORG_QUARTZ_JOBSTORE_ACQUIRETRIGGERSWITHINLOCK = "org.quartz.jobStore.acquireTriggersWithinLock"; public static final String ORG_QUARTZ_JOBSTORE_DATASOURCE = "org.quartz.jobStore.dataSource"; public static final String ORG_QUARTZ_DATASOURCE_MYDS_CONNECTIONPROVIDER_CLASS = "org.quartz.dataSource.myDs.connectionProvider.class"; /** * quartz config default value */ public static final String QUARTZ_TABLE_PREFIX = "QRTZ_"; public static final String QUARTZ_MISFIRETHRESHOLD = "60000"; public static final String QUARTZ_CLUSTERCHECKININTERVAL = "5000"; public static final String QUARTZ_DATASOURCE = "myDs"; public static final String QUARTZ_THREADCOUNT = "25"; public static final String QUARTZ_THREADPRIORITY = "5"; public static final String QUARTZ_INSTANCENAME = "DolphinScheduler"; public static final String QUARTZ_INSTANCEID = "AUTO"; public static final String QUARTZ_ACQUIRETRIGGERSWITHINLOCK = "true"; /** * common properties path */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String COMMON_PROPERTIES_PATH = "/common.properties"; /** * alter properties */ public static final String ALERT_PLUGIN_BINDING = "alert.plugin.binding"; public static final String ALERT_PLUGIN_DIR = "alert.plugin.dir"; public static final int ALERT_RPC_PORT = 50052; /** * registry properties */ public static final String REGISTRY_DOLPHINSCHEDULER_MASTERS = "/nodes/master"; public static final String REGISTRY_DOLPHINSCHEDULER_WORKERS = "/nodes/worker"; public static final String REGISTRY_DOLPHINSCHEDULER_DEAD_SERVERS = "/dead-servers"; public static final String REGISTRY_DOLPHINSCHEDULER_NODE = "/nodes"; public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_MASTERS = "/lock/masters"; public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_MASTERS = "/lock/failover/masters"; public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_WORKERS = "/lock/failover/workers"; public static final String REGISTRY_DOLPHINSCHEDULER_LOCK_FAILOVER_STARTUP_MASTERS = "/lock/failover/startup-masters"; public static final String REGISTRY_PLUGIN_BINDING = "registry.plugin.binding"; public static final String REGISTRY_PLUGIN_DIR = "registry.plugin.dir"; public static final String REGISTRY_SERVERS = "registry.servers"; /** * fs.defaultFS */ public static final String FS_DEFAULTFS = "fs.defaultFS"; /** * fs s3a endpoint */ public static final String FS_S3A_ENDPOINT = "fs.s3a.endpoint"; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
* fs s3a access key */ public static final String FS_S3A_ACCESS_KEY = "fs.s3a.access.key"; /** * fs s3a secret key */ public static final String FS_S3A_SECRET_KEY = "fs.s3a.secret.key"; /** * hadoop configuration */ public static final String HADOOP_RM_STATE_ACTIVE = "ACTIVE"; public static final String HADOOP_RM_STATE_STANDBY = "STANDBY"; public static final String HADOOP_RESOURCE_MANAGER_HTTPADDRESS_PORT = "resource.manager.httpaddress.port"; /** * yarn.resourcemanager.ha.rm.ids */ public static final String YARN_RESOURCEMANAGER_HA_RM_IDS = "yarn.resourcemanager.ha.rm.ids"; /** * yarn.application.status.address */ public static final String YARN_APPLICATION_STATUS_ADDRESS = "yarn.application.status.address"; /** * yarn.job.history.status.address */ public static final String YARN_JOB_HISTORY_STATUS_ADDRESS = "yarn.job.history.status.address"; /** * hdfs configuration * hdfs.root.user */ public static final String HDFS_ROOT_USER = "hdfs.root.user";
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/** * hdfs/s3 configuration * resource.upload.path */ public static final String RESOURCE_UPLOAD_PATH = "resource.upload.path"; /** * data basedir path */ public static final String DATA_BASEDIR_PATH = "data.basedir.path"; /** * dolphinscheduler.env.path */ public static final String DOLPHINSCHEDULER_ENV_PATH = "dolphinscheduler.env.path"; /** * environment properties default path */ public static final String ENV_PATH = "env/dolphinscheduler_env.sh"; /** * python home */ public static final String PYTHON_HOME = "PYTHON_HOME"; /** * resource.view.suffixs */ public static final String RESOURCE_VIEW_SUFFIXS = "resource.view.suffixs"; public static final String RESOURCE_VIEW_SUFFIXS_DEFAULT_VALUE = "txt,log,sh,bat,conf,cfg,py,java,sql,xml,hql,properties,json,yml,yaml,ini,js"; /** * development.state */ public static final String DEVELOPMENT_STATE = "development.state";
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/** * sudo enable */ public static final String SUDO_ENABLE = "sudo.enable"; /** * string true */ public static final String STRING_TRUE = "true"; /** * string false */ public static final String STRING_FALSE = "false"; /** * resource storage type */ public static final String RESOURCE_STORAGE_TYPE = "resource.storage.type"; /** * comma , */ public static final String COMMA = ","; /** * COLON : */ public static final String COLON = ":"; /** * SPACE " " */ public static final String SPACE = " "; /** * SINGLE_SLASH /
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
*/ public static final String SINGLE_SLASH = "/"; /** * DOUBLE_SLASH // */ public static final String DOUBLE_SLASH = "//"; /** * SINGLE_QUOTES "'" */ public static final String SINGLE_QUOTES = "'"; /** * DOUBLE_QUOTES "\"" */ public static final String DOUBLE_QUOTES = "\""; /** * SEMICOLON ; */ public static final String SEMICOLON = ";"; /** * EQUAL SIGN */ public static final String EQUAL_SIGN = "="; /** * AT SIGN */ public static final String AT_SIGN = "@"; /** * date format of yyyy-MM-dd HH:mm:ss */ public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/** * date format of yyyyMMddHHmmss */ public static final String YYYYMMDDHHMMSS = "yyyyMMddHHmmss"; /** * date format of yyyyMMddHHmmssSSS */ public static final String YYYYMMDDHHMMSSSSS = "yyyyMMddHHmmssSSS"; /** * http connect time out */ public static final int HTTP_CONNECT_TIMEOUT = 60 * 1000; /** * http connect request time out */ public static final int HTTP_CONNECTION_REQUEST_TIMEOUT = 60 * 1000; /** * httpclient soceket time out */ public static final int SOCKET_TIMEOUT = 60 * 1000; /** * http header */ public static final String HTTP_HEADER_UNKNOWN = "unKnown"; /** * http X-Forwarded-For */ public static final String HTTP_X_FORWARDED_FOR = "X-Forwarded-For"; /** * http X-Real-IP
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
*/ public static final String HTTP_X_REAL_IP = "X-Real-IP"; /** * UTF-8 */ public static final String UTF_8 = "UTF-8"; /** * user name regex */ public static final Pattern REGEX_USER_NAME = Pattern.compile("^[a-zA-Z0-9._-]{3,39}$"); /** * email regex */ public static final Pattern REGEX_MAIL_NAME = Pattern.compile("^([a-z0-9A-Z]+[_|\\-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$"); /** * default display rows */ public static final int DEFAULT_DISPLAY_ROWS = 10; /** * read permission */ public static final int READ_PERMISSION = 2 * 1; /** * write permission */ public static final int WRITE_PERMISSION = 2 * 2; /** * execute permission */ public static final int EXECUTE_PERMISSION = 1;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/** * default admin permission */ public static final int DEFAULT_ADMIN_PERMISSION = 7; /** * all permissions */ public static final int ALL_PERMISSIONS = READ_PERMISSION | WRITE_PERMISSION | EXECUTE_PERMISSION; /** * max task timeout */ public static final int MAX_TASK_TIMEOUT = 24 * 3600; /** * master cpu load */ public static final int DEFAULT_MASTER_CPU_LOAD = Runtime.getRuntime().availableProcessors() * 2; /** * worker cpu load */ public static final int DEFAULT_WORKER_CPU_LOAD = Runtime.getRuntime().availableProcessors() * 2; /** * worker host weight */ public static final int DEFAULT_WORKER_HOST_WEIGHT = 100; /** * default log cache rows num,output when reach the number */ public static final int DEFAULT_LOG_ROWS_NUM = 4 * 16; /** * log flush interval?output when reach the interval
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
*/ public static final int DEFAULT_LOG_FLUSH_INTERVAL = 1000; /** * time unit secong to minutes */ public static final int SEC_2_MINUTES_TIME_UNIT = 60; /*** * * rpc port */ public static final int RPC_PORT = 50051; /** * forbid running task */ public static final String FLOWNODE_RUN_FLAG_FORBIDDEN = "FORBIDDEN"; /** * normal running task */ public static final String FLOWNODE_RUN_FLAG_NORMAL = "NORMAL"; /** * datasource configuration path */ public static final String DATASOURCE_PROPERTIES = "/datasource.properties"; public static final String COMMON_TASK_TYPE = "common"; public static final String DEFAULT = "default"; public static final String USER = "user"; public static final String PASSWORD = "password"; public static final String XXXXXX = "******"; public static final String NULL = "NULL"; public static final String THREAD_NAME_MASTER_SERVER = "Master-Server";
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String THREAD_NAME_WORKER_SERVER = "Worker-Server"; /** * command parameter keys */ public static final String CMD_PARAM_RECOVER_PROCESS_ID_STRING = "ProcessInstanceId"; public static final String CMD_PARAM_RECOVERY_START_NODE_STRING = "StartNodeIdList"; public static final String CMD_PARAM_RECOVERY_WAITING_THREAD = "WaitingThreadInstanceId"; public static final String CMD_PARAM_SUB_PROCESS = "processInstanceId"; public static final String CMD_PARAM_EMPTY_SUB_PROCESS = "0"; public static final String CMD_PARAM_SUB_PROCESS_PARENT_INSTANCE_ID = "parentProcessInstanceId"; public static final String CMD_PARAM_SUB_PROCESS_DEFINE_ID = "processDefinitionId"; public static final String CMD_PARAM_START_NODE_NAMES = "StartNodeNameList"; public static final String CMD_PARAM_START_PARAMS = "StartParams"; public static final String CMD_PARAM_FATHER_PARAMS = "fatherParams"; /** * complement data start date */ public static final String CMDPARAM_COMPLEMENT_DATA_START_DATE = "complementStartDate"; /** * complement data end date */ public static final String CMDPARAM_COMPLEMENT_DATA_END_DATE = "complementEndDate"; /** * data source config */ public static final String SPRING_DATASOURCE_DRIVER_CLASS_NAME = "spring.datasource.driver-class-name"; public static final String SPRING_DATASOURCE_URL = "spring.datasource.url"; public static final String SPRING_DATASOURCE_USERNAME = "spring.datasource.username"; public static final String SPRING_DATASOURCE_PASSWORD = "spring.datasource.password"; public static final String SPRING_DATASOURCE_VALIDATION_QUERY_TIMEOUT = "spring.datasource.validationQueryTimeout";
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String SPRING_DATASOURCE_INITIAL_SIZE = "spring.datasource.initialSize"; public static final String SPRING_DATASOURCE_MIN_IDLE = "spring.datasource.minIdle"; public static final String SPRING_DATASOURCE_MAX_ACTIVE = "spring.datasource.maxActive"; public static final String SPRING_DATASOURCE_MAX_WAIT = "spring.datasource.maxWait"; public static final String SPRING_DATASOURCE_TIME_BETWEEN_EVICTION_RUNS_MILLIS = "spring.datasource.timeBetweenEvictionRunsMillis"; public static final String SPRING_DATASOURCE_TIME_BETWEEN_CONNECT_ERROR_MILLIS = "spring.datasource.timeBetweenConnectErrorMillis"; public static final String SPRING_DATASOURCE_MIN_EVICTABLE_IDLE_TIME_MILLIS = "spring.datasource.minEvictableIdleTimeMillis"; public static final String SPRING_DATASOURCE_VALIDATION_QUERY = "spring.datasource.validationQuery"; public static final String SPRING_DATASOURCE_TEST_WHILE_IDLE = "spring.datasource.testWhileIdle"; public static final String SPRING_DATASOURCE_TEST_ON_BORROW = "spring.datasource.testOnBorrow"; public static final String SPRING_DATASOURCE_TEST_ON_RETURN = "spring.datasource.testOnReturn"; public static final String SPRING_DATASOURCE_POOL_PREPARED_STATEMENTS = "spring.datasource.poolPreparedStatements"; public static final String SPRING_DATASOURCE_DEFAULT_AUTO_COMMIT = "spring.datasource.defaultAutoCommit"; public static final String SPRING_DATASOURCE_KEEP_ALIVE = "spring.datasource.keepAlive"; public static final String SPRING_DATASOURCE_MAX_POOL_PREPARED_STATEMENT_PER_CONNECTION_SIZE = "spring.datasource.maxPoolPreparedStatementPerConnectionSize"; public static final String DEVELOPMENT = "development"; public static final String QUARTZ_PROPERTIES_PATH = "quartz.properties"; /** * sleep time */ public static final int SLEEP_TIME_MILLIS = 1000; /** * master task instance cache-database refresh interval */ public static final int CACHE_REFRESH_TIME_MILLIS = 20 * 1000; /** * heartbeat for zk info length */ public static final int HEARTBEAT_FOR_ZOOKEEPER_INFO_LENGTH = 10; public static final int HEARTBEAT_WITH_WEIGHT_FOR_ZOOKEEPER_INFO_LENGTH = 11;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/** * jar */ public static final String JAR = "jar"; /** * hadoop */ public static final String HADOOP = "hadoop"; /** * -D <property>=<value> */ public static final String D = "-D"; /** * -D mapreduce.job.name=name */ public static final String MR_NAME = "mapreduce.job.name"; /** * -D mapreduce.job.queuename=queuename */ public static final String MR_QUEUE = "mapreduce.job.queuename"; /** * spark params constant */ public static final String MASTER = "--master"; public static final String DEPLOY_MODE = "--deploy-mode"; /** * --class CLASS_NAME */ public static final String MAIN_CLASS = "--class"; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
* --driver-cores NUM */ public static final String DRIVER_CORES = "--driver-cores"; /** * --driver-memory MEM */ public static final String DRIVER_MEMORY = "--driver-memory"; /** * --num-executors NUM */ public static final String NUM_EXECUTORS = "--num-executors"; /** * --executor-cores NUM */ public static final String EXECUTOR_CORES = "--executor-cores"; /** * --executor-memory MEM */ public static final String EXECUTOR_MEMORY = "--executor-memory"; /** * --name NAME */ public static final String SPARK_NAME = "--name"; /** * --queue QUEUE */ public static final String SPARK_QUEUE = "--queue"; /** * exit code success */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final int EXIT_CODE_SUCCESS = 0; /** * exit code kill */ public static final int EXIT_CODE_KILL = 137; /** * exit code failure */ public static final int EXIT_CODE_FAILURE = -1; /** * process or task definition failure */ public static final int DEFINITION_FAILURE = -1; /** * process or task definition first version */ public static final int VERSION_FIRST = 1; /** * date format of yyyyMMdd */ public static final String PARAMETER_FORMAT_DATE = "yyyyMMdd"; /** * date format of yyyyMMddHHmmss */ public static final String PARAMETER_FORMAT_TIME = "yyyyMMddHHmmss"; /** * system date(yyyyMMddHHmmss) */ public static final String PARAMETER_DATETIME = "system.datetime"; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
* system date(yyyymmdd) today */ public static final String PARAMETER_CURRENT_DATE = "system.biz.curdate"; /** * system date(yyyymmdd) yesterday */ public static final String PARAMETER_BUSINESS_DATE = "system.biz.date"; /** * the absolute path of current executing task */ public static final String PARAMETER_TASK_EXECUTE_PATH = "system.task.execute.path"; /** * the instance id of current task */ public static final String PARAMETER_TASK_INSTANCE_ID = "system.task.instance.id"; /** * ACCEPTED */ public static final String ACCEPTED = "ACCEPTED"; /** * SUCCEEDED */ public static final String SUCCEEDED = "SUCCEEDED"; /** * NEW */ public static final String NEW = "NEW"; /** * NEW_SAVING */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String NEW_SAVING = "NEW_SAVING"; /** * SUBMITTED */ public static final String SUBMITTED = "SUBMITTED"; /** * FAILED */ public static final String FAILED = "FAILED"; /** * KILLED */ public static final String KILLED = "KILLED"; /** * RUNNING */ public static final String RUNNING = "RUNNING"; /** * underline "_" */ public static final String UNDERLINE = "_"; /** * quartz job prifix */ public static final String QUARTZ_JOB_PRIFIX = "job"; /** * quartz job group prifix */ public static final String QUARTZ_JOB_GROUP_PRIFIX = "jobgroup"; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
* projectId */ public static final String PROJECT_ID = "projectId"; /** * processId */ public static final String SCHEDULE_ID = "scheduleId"; /** * schedule */ public static final String SCHEDULE = "schedule"; /** * application regex */ public static final String APPLICATION_REGEX = "application_\\d+_\\d+"; public static final String PID = OSUtils.isWindows() ? "handle" : "pid"; /** * month_begin */ public static final String MONTH_BEGIN = "month_begin"; /** * add_months */ public static final String ADD_MONTHS = "add_months"; /** * month_end */ public static final String MONTH_END = "month_end"; /** * week_begin
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
*/ public static final String WEEK_BEGIN = "week_begin"; /** * week_end */ public static final String WEEK_END = "week_end"; /** * timestamp */ public static final String TIMESTAMP = "timestamp"; public static final char SUBTRACT_CHAR = '-'; public static final char ADD_CHAR = '+'; public static final char MULTIPLY_CHAR = '*'; public static final char DIVISION_CHAR = '/'; public static final char LEFT_BRACE_CHAR = '('; public static final char RIGHT_BRACE_CHAR = ')'; public static final String ADD_STRING = "+"; public static final String MULTIPLY_STRING = "*"; public static final String DIVISION_STRING = "/"; public static final String LEFT_BRACE_STRING = "("; public static final char P = 'P'; public static final char N = 'N'; public static final String SUBTRACT_STRING = "-"; public static final String GLOBAL_PARAMS = "globalParams"; public static final String LOCAL_PARAMS = "localParams"; public static final String LOCAL_PARAMS_LIST = "localParamsList"; public static final String SUBPROCESS_INSTANCE_ID = "subProcessInstanceId"; public static final String PROCESS_INSTANCE_STATE = "processInstanceState"; public static final String PARENT_WORKFLOW_INSTANCE = "parentWorkflowInstance"; public static final String CONDITION_RESULT = "conditionResult";
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String SWITCH_RESULT = "switchResult"; public static final String DEPENDENCE = "dependence"; public static final String TASK_TYPE = "taskType"; public static final String TASK_LIST = "taskList"; public static final String RWXR_XR_X = "rwxr-xr-x"; public static final String QUEUE = "queue"; public static final String QUEUE_NAME = "queueName"; public static final int LOG_QUERY_SKIP_LINE_NUMBER = 0; public static final int LOG_QUERY_LIMIT = 4096; /** * master/worker server use for zk */ public static final String MASTER_TYPE = "master"; public static final String WORKER_TYPE = "worker"; public static final String DELETE_OP = "delete"; public static final String ADD_OP = "add"; public static final String ALIAS = "alias"; public static final String CONTENT = "content"; public static final String DEPENDENT_SPLIT = ":||"; public static final String DEPENDENT_ALL = "ALL"; /** * preview schedule execute count */ public static final int PREVIEW_SCHEDULE_EXECUTE_COUNT = 5; /** * kerberos */ public static final String KERBEROS = "kerberos"; /** * kerberos expire time
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
*/ public static final String KERBEROS_EXPIRE_TIME = "kerberos.expire.time"; /** * java.security.krb5.conf */ public static final String JAVA_SECURITY_KRB5_CONF = "java.security.krb5.conf"; /** * java.security.krb5.conf.path */ public static final String JAVA_SECURITY_KRB5_CONF_PATH = "java.security.krb5.conf.path"; /** * hadoop.security.authentication */ public static final String HADOOP_SECURITY_AUTHENTICATION = "hadoop.security.authentication"; /** * hadoop.security.authentication */ public static final String HADOOP_SECURITY_AUTHENTICATION_STARTUP_STATE = "hadoop.security.authentication.startup.state"; /** * com.amazonaws.services.s3.enableV4 */ public static final String AWS_S3_V4 = "com.amazonaws.services.s3.enableV4"; /** * loginUserFromKeytab user */ public static final String LOGIN_USER_KEY_TAB_USERNAME = "login.user.keytab.username"; /** * loginUserFromKeytab path */ public static final String LOGIN_USER_KEY_TAB_PATH = "login.user.keytab.path";
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/** * task log info format */ public static final String TASK_LOG_INFO_FORMAT = "TaskLogInfo-%s"; /** * hive conf */ public static final String HIVE_CONF = "hiveconf:"; /** * flink */ public static final String FLINK_YARN_CLUSTER = "yarn-cluster"; public static final String FLINK_RUN_MODE = "-m"; public static final String FLINK_YARN_SLOT = "-ys"; public static final String FLINK_APP_NAME = "-ynm"; public static final String FLINK_QUEUE = "-yqu"; public static final String FLINK_TASK_MANAGE = "-yn"; public static final String FLINK_JOB_MANAGE_MEM = "-yjm"; public static final String FLINK_TASK_MANAGE_MEM = "-ytm"; public static final String FLINK_MAIN_CLASS = "-c"; public static final String FLINK_PARALLELISM = "-p"; public static final String FLINK_SHUTDOWN_ON_ATTACHED_EXIT = "-sae"; public static final int[] NOT_TERMINATED_STATES = new int[] { ExecutionStatus.SUBMITTED_SUCCESS.ordinal(), ExecutionStatus.RUNNING_EXECUTION.ordinal(), ExecutionStatus.DELAY_EXECUTION.ordinal(), ExecutionStatus.READY_PAUSE.ordinal(), ExecutionStatus.READY_STOP.ordinal(), ExecutionStatus.NEED_FAULT_TOLERANCE.ordinal(), ExecutionStatus.WAITING_THREAD.ordinal(),
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
ExecutionStatus.WAITING_DEPEND.ordinal() }; /** * status */ public static final String STATUS = "status"; /** * message */ public static final String MSG = "msg"; /** * data total */ public static final String COUNT = "count"; /** * page size */ public static final String PAGE_SIZE = "pageSize"; /** * current page no */ public static final String PAGE_NUMBER = "pageNo"; /** * */ public static final String DATA_LIST = "data"; public static final String TOTAL_LIST = "totalList"; public static final String CURRENT_PAGE = "currentPage"; public static final String TOTAL_PAGE = "totalPage"; public static final String TOTAL = "total";
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/** * workflow */ public static final String WORKFLOW_LIST = "workFlowList"; public static final String WORKFLOW_RELATION_LIST = "workFlowRelationList"; /** * session user */ public static final String SESSION_USER = "session.user"; public static final String SESSION_ID = "sessionId"; public static final String PASSWORD_DEFAULT = "******"; /** * locale */ public static final String LOCALE_LANGUAGE = "language"; /** * driver */ public static final String ORG_POSTGRESQL_DRIVER = "org.postgresql.Driver"; public static final String COM_MYSQL_JDBC_DRIVER = "com.mysql.jdbc.Driver"; public static final String ORG_APACHE_HIVE_JDBC_HIVE_DRIVER = "org.apache.hive.jdbc.HiveDriver"; public static final String COM_CLICKHOUSE_JDBC_DRIVER = "ru.yandex.clickhouse.ClickHouseDriver"; public static final String COM_ORACLE_JDBC_DRIVER = "oracle.jdbc.driver.OracleDriver"; public static final String COM_SQLSERVER_JDBC_DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; public static final String COM_DB2_JDBC_DRIVER = "com.ibm.db2.jcc.DB2Driver"; public static final String COM_PRESTO_JDBC_DRIVER = "com.facebook.presto.jdbc.PrestoDriver"; /** * database type */ public static final String MYSQL = "MYSQL";
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
public static final String POSTGRESQL = "POSTGRESQL"; public static final String HIVE = "HIVE"; public static final String SPARK = "SPARK"; public static final String CLICKHOUSE = "CLICKHOUSE"; public static final String ORACLE = "ORACLE"; public static final String SQLSERVER = "SQLSERVER"; public static final String DB2 = "DB2"; public static final String PRESTO = "PRESTO"; /** * jdbc url */ public static final String JDBC_MYSQL = "jdbc:mysql://"; public static final String JDBC_POSTGRESQL = "jdbc:postgresql://"; public static final String JDBC_HIVE_2 = "jdbc:hive2://"; public static final String JDBC_CLICKHOUSE = "jdbc:clickhouse://"; public static final String JDBC_ORACLE_SID = "jdbc:oracle:thin:@"; public static final String JDBC_ORACLE_SERVICE_NAME = "jdbc:oracle:thin:@//"; public static final String JDBC_SQLSERVER = "jdbc:sqlserver://"; public static final String JDBC_DB2 = "jdbc:db2://"; public static final String JDBC_PRESTO = "jdbc:presto://"; public static final String ADDRESS = "address"; public static final String DATABASE = "database"; public static final String JDBC_URL = "jdbcUrl"; public static final String PRINCIPAL = "principal"; public static final String OTHER = "other"; public static final String ORACLE_DB_CONNECT_TYPE = "connectType"; public static final String KERBEROS_KRB5_CONF_PATH = "javaSecurityKrb5Conf"; public static final String KERBEROS_KEY_TAB_USERNAME = "loginUserKeytabUsername"; public static final String KERBEROS_KEY_TAB_PATH = "loginUserKeytabPath"; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
* session timeout */ public static final int SESSION_TIME_OUT = 7200; public static final int MAX_FILE_SIZE = 1024 * 1024 * 1024; public static final String UDF = "UDF"; public static final String CLASS = "class"; public static final String RECEIVERS = "receivers"; public static final String RECEIVERS_CC = "receiversCc"; /** * dataSource sensitive param */ public static final String DATASOURCE_PASSWORD_REGEX = "(?<=((?i)password((\\\\\":\\\\\")|(=')))).*?(?=((\\\\\")|(')))"; /** * default worker group */ public static final String DEFAULT_WORKER_GROUP = "default"; public static final Integer TASK_INFO_LENGTH = 5; /** * new * schedule time */ public static final String PARAMETER_SHECDULE_TIME = "schedule.time"; /** * authorize writable perm */ public static final int AUTHORIZE_WRITABLE_PERM = 7; /** * authorize readable perm */ public static final int AUTHORIZE_READABLE_PERM = 4;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
/** * plugin configurations */ public static final String PLUGIN_JAR_SUFFIX = ".jar"; public static final int NORMAL_NODE_STATUS = 0; public static final int ABNORMAL_NODE_STATUS = 1; public static final String START_TIME = "start time"; public static final String END_TIME = "end time"; public static final String START_END_DATE = "startDate,endDate"; /** * system line separator */ public static final String SYSTEM_LINE_SEPARATOR = System.getProperty("line.separator"); public static final String EXCEL_SUFFIX_XLS = ".xls"; /** * datasource encryption salt */ public static final String DATASOURCE_ENCRYPTION_SALT_DEFAULT = "!@#$%^&*"; public static final String DATASOURCE_ENCRYPTION_ENABLE = "datasource.encryption.enable"; public static final String DATASOURCE_ENCRYPTION_SALT = "datasource.encryption.salt"; /** * network interface preferred */ public static final String DOLPHIN_SCHEDULER_NETWORK_INTERFACE_PREFERRED = "dolphin.scheduler.network.interface.preferred"; /** * network IP gets priority, default inner outer */ public static final String DOLPHIN_SCHEDULER_NETWORK_PRIORITY_STRATEGY = "dolphin.scheduler.network.priority.strategy"; /** * exec shell scripts
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
*/ public static final String SH = "sh"; /** * pstree, get pud and sub pid */ public static final String PSTREE = "pstree"; /** * snow flake, data center id, this id must be greater than 0 and less than 32 */ public static final String SNOW_FLAKE_DATA_CENTER_ID = "data.center.id"; /** * docker & kubernetes */ public static final boolean DOCKER_MODE = !StringUtils.isEmpty(System.getenv("DOCKER")); public static final boolean KUBERNETES_MODE = !StringUtils.isEmpty(System.getenv("KUBERNETES_SERVICE_HOST")) && !StringUtils.isEmpty(System.getenv("KUBERNETES_SERVICE_PORT")); /** * task parameter keys */ public static final String TASK_PARAMS = "params"; public static final String TASK_PARAMS_DATASOURCE = "datasource"; public static final String TASK_PARAMS_DATASOURCE_NAME = "datasourceName"; public static final String TASK_DEPENDENCE = "dependence"; public static final String TASK_DEPENDENCE_DEPEND_TASK_LIST = "dependTaskList"; public static final String TASK_DEPENDENCE_DEPEND_ITEM_LIST = "dependItemList"; public static final String TASK_DEPENDENCE_PROJECT_ID = "projectId"; public static final String TASK_DEPENDENCE_PROJECT_NAME = "projectName"; public static final String TASK_DEPENDENCE_DEFINITION_ID = "definitionId"; public static final String TASK_DEPENDENCE_DEFINITION_NAME = "definitionName"; }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
* * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.common.model; import org.apache.dolphinscheduler.common.Constants; import org.apache.dolphinscheduler.common.enums.Priority; import org.apache.dolphinscheduler.common.enums.TaskTimeoutStrategy; import org.apache.dolphinscheduler.common.enums.TaskType; import org.apache.dolphinscheduler.common.task.TaskTimeoutParameter; import org.apache.dolphinscheduler.common.utils.CollectionUtils; import org.apache.dolphinscheduler.common.utils.JSONUtils; import org.apache.commons.lang.StringUtils; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; public class TaskNode { /** * task node id */ private String id; /** * task node code */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
private long code; /** * task node version */ private int version; /** * task node name */ private String name; /** * task node description */ private String desc; /** * task node type */ private String type; /** * the run flag has two states, NORMAL or FORBIDDEN */ private String runFlag; /** * the front field */ private String loc; /** * maximum number of retries */ private int maxRetryTimes; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
* Unit of retry interval: points */ private int retryInterval; /** * params information */ @JsonDeserialize(using = JSONUtils.JsonDataDeserializer.class) @JsonSerialize(using = JSONUtils.JsonDataSerializer.class) private String params; /** * inner dependency information */ @JsonDeserialize(using = JSONUtils.JsonDataDeserializer.class) @JsonSerialize(using = JSONUtils.JsonDataSerializer.class) private String preTasks; /** * node dependency list */ private List<PreviousTaskNode> preTaskNodeList; /** * users store additional information */ @JsonDeserialize(using = JSONUtils.JsonDataDeserializer.class) @JsonSerialize(using = JSONUtils.JsonDataSerializer.class) private String extras; /** * node dependency list */ private List<String> depList; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
* outer dependency information */ @JsonDeserialize(using = JSONUtils.JsonDataDeserializer.class) @JsonSerialize(using = JSONUtils.JsonDataSerializer.class) private String dependence; @JsonDeserialize(using = JSONUtils.JsonDataDeserializer.class) @JsonSerialize(using = JSONUtils.JsonDataSerializer.class) private String conditionResult; @JsonDeserialize(using = JSONUtils.JsonDataDeserializer.class) @JsonSerialize(using = JSONUtils.JsonDataSerializer.class) private String switchResult; /** * task instance priority */ private Priority taskInstancePriority; /** * worker group */ private String workerGroup; /** * environment code */ private Long environmentCode; /** * task time out */ @JsonDeserialize(using = JSONUtils.JsonDataDeserializer.class) @JsonSerialize(using = JSONUtils.JsonDataSerializer.class) private String timeout; /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
* delay execution time. */ private int delayTime; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getParams() { return params; }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
public void setParams(String params) { this.params = params; } public String getPreTasks() { return preTasks; } public void setPreTasks(String preTasks) { this.preTasks = preTasks; this.depList = JSONUtils.toList(preTasks, String.class); } public String getExtras() { return extras; } public void setExtras(String extras) { this.extras = extras; } public List<String> getDepList() { return depList; } public void setDepList(List<String> depList) { if (depList != null) { this.depList = depList; this.preTasks = JSONUtils.toJsonString(depList); } } public String getLoc() { return loc; } public void setLoc(String loc) { this.loc = loc;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
} public String getRunFlag() { return runFlag; } public void setRunFlag(String runFlag) { this.runFlag = runFlag; } public Boolean isForbidden() { return (!StringUtils.isEmpty(this.runFlag) && this.runFlag.equals(Constants.FLOWNODE_RUN_FLAG_FORBIDDEN)); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } TaskNode taskNode = (TaskNode) o; return Objects.equals(name, taskNode.name) && Objects.equals(desc, taskNode.desc) && Objects.equals(type, taskNode.type) && Objects.equals(params, taskNode.params) && Objects.equals(preTasks, taskNode.preTasks) && Objects.equals(extras, taskNode.extras) && Objects.equals(runFlag, taskNode.runFlag) && Objects.equals(dependence, taskNode.dependence) && Objects.equals(workerGroup, taskNode.workerGroup) && Objects.equals(environmentCode, taskNode.environmentCode)
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
&& Objects.equals(conditionResult, taskNode.conditionResult) && CollectionUtils.equalLists(depList, taskNode.depList); } @Override public int hashCode() { return Objects.hash(name, desc, type, params, preTasks, extras, depList, runFlag); } public String getDependence() { return dependence; } public void setDependence(String dependence) { this.dependence = dependence; } public int getMaxRetryTimes() { return maxRetryTimes; } public void setMaxRetryTimes(int maxRetryTimes) { this.maxRetryTimes = maxRetryTimes; } public int getRetryInterval() { return retryInterval; } public void setRetryInterval(int retryInterval) { this.retryInterval = retryInterval; } public Priority getTaskInstancePriority() { return taskInstancePriority; } public void setTaskInstancePriority(Priority taskInstancePriority) { this.taskInstancePriority = taskInstancePriority;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
} public String getTimeout() { return timeout; } public void setTimeout(String timeout) { this.timeout = timeout; } public String getWorkerGroup() { return workerGroup; } public void setWorkerGroup(String workerGroup) { this.workerGroup = workerGroup; } public String getConditionResult() { return conditionResult; } public void setConditionResult(String conditionResult) { this.conditionResult = conditionResult; } public int getDelayTime() { return delayTime; } public void setDelayTime(int delayTime) { this.delayTime = delayTime; } public long getCode() { return code; } public void setCode(long code) { this.code = code;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
} public int getVersion() { return version; } public void setVersion(int version) { this.version = version; } /** * get task time out parameter * * @return task time out parameter */ public TaskTimeoutParameter getTaskTimeoutParameter() { if (!StringUtils.isEmpty(this.getTimeout())) { String formatStr = String.format("%s,%s", TaskTimeoutStrategy.WARN.name(), TaskTimeoutStrategy.FAILED.name()); String taskTimeout = this.getTimeout().replace(formatStr, TaskTimeoutStrategy.WARNFAILED.name()); return JSONUtils.parseObject(taskTimeout, TaskTimeoutParameter.class); } return new TaskTimeoutParameter(false); } public boolean isConditionsTask() { return TaskType.CONDITIONS.getDesc().equalsIgnoreCase(this.getType()); } public boolean isSwitchTask() { return TaskType.SWITCH.toString().equalsIgnoreCase(this.getType()); } public List<PreviousTaskNode> getPreTaskNodeList() { return preTaskNodeList; } public void setPreTaskNodeList(List<PreviousTaskNode> preTaskNodeList) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
this.preTaskNodeList = preTaskNodeList; } public String getTaskParams() { Map<String, Object> taskParams = JSONUtils.toMap(this.params, String.class, Object.class); if (taskParams == null) { taskParams = new HashMap<>(); } taskParams.put(Constants.CONDITION_RESULT, this.conditionResult); taskParams.put(Constants.DEPENDENCE, this.dependence); taskParams.put(Constants.SWITCH_RESULT, this.switchResult); return JSONUtils.toJsonString(taskParams); } public Map<String, Object> taskParamsToJsonObj(String taskParams) { Map<String, Object> taskParamsMap = JSONUtils.toMap(taskParams, String.class, Object.class); if (taskParamsMap == null) { taskParamsMap = new HashMap<>(); } return taskParamsMap; } @Override public String toString() { return "TaskNode{" + "id='" + id + '\'' + ", code=" + code + ", version=" + version + ", name='" + name + '\'' + ", desc='" + desc + '\'' + ", type='" + type + '\'' + ", runFlag='" + runFlag + '\'' + ", loc='" + loc + '\''
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,208
[Bug] [Master] json parse error in sub process
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev running a sub process, json parse error in sub process ![image](https://user-images.githubusercontent.com/29528966/133248693-467afe92-1310-441d-b929-2bc4b25810b7.png) ### What you expected to happen sub process run successfully. ### How to reproduce run a sub process. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6208
https://github.com/apache/dolphinscheduler/pull/6211
ac943bca6a3146ea23bdbfe85a09eac68da73945
8694b9c8f989eb5c6b0792e5901cba2a207cdcf0
"2021-09-14T11:24:11Z"
java
"2021-09-15T02:29:26Z"
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
+ ", maxRetryTimes=" + maxRetryTimes + ", retryInterval=" + retryInterval + ", params='" + params + '\'' + ", preTasks='" + preTasks + '\'' + ", preTaskNodeList=" + preTaskNodeList + ", extras='" + extras + '\'' + ", depList=" + depList + ", dependence='" + dependence + '\'' + ", conditionResult='" + conditionResult + '\'' + ", taskInstancePriority=" + taskInstancePriority + ", workerGroup='" + workerGroup + '\'' + ", environmentCode=" + environmentCode + ", timeout='" + timeout + '\'' + ", delayTime=" + delayTime + '}'; } public void setEnvironmentCode(Long environmentCode) { this.environmentCode = environmentCode; } public Long getEnvironmentCode() { return this.environmentCode; } public String getSwitchResult() { return switchResult; } public void setSwitchResult(String switchResult) { this.switchResult = switchResult; } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.server.master.registry; import static org.apache.dolphinscheduler.common.Constants.REGISTRY_DOLPHINSCHEDULER_MASTERS; import static org.apache.dolphinscheduler.common.Constants.REGISTRY_DOLPHINSCHEDULER_WORKERS; import org.apache.dolphinscheduler.common.Constants; import org.apache.dolphinscheduler.common.enums.NodeType; import org.apache.dolphinscheduler.common.model.Server; import org.apache.dolphinscheduler.common.utils.NetUtils; import org.apache.dolphinscheduler.dao.AlertDao; import org.apache.dolphinscheduler.dao.entity.WorkerGroup; import org.apache.dolphinscheduler.dao.mapper.WorkerGroupMapper;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
import org.apache.dolphinscheduler.remote.utils.NamedThreadFactory; import org.apache.dolphinscheduler.service.queue.MasterPriorityQueue; import org.apache.dolphinscheduler.service.registry.RegistryClient; import org.apache.dolphinscheduler.spi.register.DataChangeEvent; import org.apache.dolphinscheduler.spi.register.SubscribeListener; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.StringUtils; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import javax.annotation.PreDestroy; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * server node manager */ @Service
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
public class ServerNodeManager implements InitializingBean { private final Logger logger = LoggerFactory.getLogger(ServerNodeManager.class); /** * master lock */ private final Lock masterLock = new ReentrantLock(); /** * worker group lock
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
*/ private final Lock workerGroupLock = new ReentrantLock(); /** * worker node info lock */ private final Lock workerNodeInfoLock = new ReentrantLock(); /** * worker group nodes */ private final ConcurrentHashMap<String, Set<String>> workerGroupNodes = new ConcurrentHashMap<>(); /** * master nodes */ private final Set<String> masterNodes = new HashSet<>(); /** * worker node info */ private final Map<String, String> workerNodeInfo = new HashMap<>(); /** * executor service */ private ScheduledExecutorService executorService; /** * zk client */ private RegistryClient registryClient = RegistryClient.getInstance(); /** * worker group mapper */ @Autowired
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
private WorkerGroupMapper workerGroupMapper; private MasterPriorityQueue masterPriorityQueue = new MasterPriorityQueue(); /** * alert dao */ @Autowired private AlertDao alertDao; public static volatile List<Integer> SLOT_LIST = new ArrayList<>(); public static volatile Integer MASTER_SIZE = 0; public static Integer getSlot() { if (SLOT_LIST.size() > 0) { return SLOT_LIST.get(0); } return 0; } /** * init listener * * @throws Exception if error throws Exception */ @Override public void afterPropertiesSet() throws Exception { /** * load nodes from zookeeper */ load(); /** * init executor service */ executorService = Executors.newSingleThreadScheduledExecutor(new NamedThreadFactory("ServerNodeManagerExecutor"));
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
executorService.scheduleWithFixedDelay(new WorkerNodeInfoAndGroupDbSyncTask(), 0, 10, TimeUnit.SECONDS); /** * init MasterNodeListener listener */ registryClient.subscribe(REGISTRY_DOLPHINSCHEDULER_MASTERS, new MasterDataListener()); /** * init WorkerNodeListener listener */ registryClient.subscribe(REGISTRY_DOLPHINSCHEDULER_WORKERS, new MasterDataListener()); } /** * load nodes from zookeeper */ public void load() { /** * master nodes from zookeeper */ updateMasterNodes(); /** * worker group nodes from zookeeper */ Set<String> workerGroups = registryClient.getWorkerGroupDirectly(); for (String workerGroup : workerGroups) { syncWorkerGroupNodes(workerGroup, registryClient.getWorkerGroupNodesDirectly(workerGroup)); } } /** * worker node info and worker group db sync task */ class WorkerNodeInfoAndGroupDbSyncTask implements Runnable {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
@Override public void run() { Map<String, String> newWorkerNodeInfo = registryClient.getServerMaps(NodeType.WORKER, true); syncWorkerNodeInfo(newWorkerNodeInfo); List<WorkerGroup> workerGroupList = workerGroupMapper.queryAllWorkerGroup(); if (CollectionUtils.isNotEmpty(workerGroupList)) { for (WorkerGroup wg : workerGroupList) { String workerGroup = wg.getName(); Set<String> nodes = new HashSet<>(); String[] addrs = wg.getAddrList().split(Constants.COMMA); for (String addr : addrs) { if (newWorkerNodeInfo.containsKey(addr)) { nodes.add(addr); } } if (!nodes.isEmpty()) { syncWorkerGroupNodes(workerGroup, nodes); } } } } } /** * worker group node listener */ class WorkerGroupNodeListener implements SubscribeListener {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
@Override public void notify(String path, DataChangeEvent dataChangeEvent) { if (registryClient.isWorkerPath(path)) { try { if (dataChangeEvent == DataChangeEvent.ADD) { logger.info("worker group node : {} added.", path); String group = parseGroup(path); Set<String> currentNodes = registryClient.getWorkerGroupNodesDirectly(group); logger.info("currentNodes : {}", currentNodes); syncWorkerGroupNodes(group, currentNodes); } else if (dataChangeEvent == DataChangeEvent.REMOVE) { logger.info("worker group node : {} down.", path); String group = parseGroup(path); Set<String> currentNodes = registryClient.getWorkerGroupNodesDirectly(group); syncWorkerGroupNodes(group, currentNodes);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
alertDao.sendServerStopedAlert(1, path, "WORKER"); } } catch (IllegalArgumentException ex) { logger.warn(ex.getMessage()); } catch (Exception ex) { logger.error("WorkerGroupListener capture data change and get data failed", ex); } } } private String parseGroup(String path) { String[] parts = path.split("/"); if (parts.length < 6) { throw new IllegalArgumentException(String.format("worker group path : %s is not valid, ignore", path)); } return parts[parts.length - 2]; } } /** * master node listener */ class MasterDataListener implements SubscribeListener { @Override public void notify(String path, DataChangeEvent dataChangeEvent) { if (registryClient.isMasterPath(path)) { try { if (dataChangeEvent.equals(DataChangeEvent.ADD)) { logger.info("master node : {} added.", path); updateMasterNodes(); } if (dataChangeEvent.equals(DataChangeEvent.REMOVE)) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
logger.info("master node : {} down.", path); updateMasterNodes(); alertDao.sendServerStopedAlert(1, path, "MASTER"); } } catch (Exception ex) { logger.error("MasterNodeListener capture data change and get data failed.", ex); } } } } private void updateMasterNodes() { SLOT_LIST.clear(); this.masterNodes.clear(); String nodeLock = registryClient.getMasterLockPath(); try { registryClient.getLock(nodeLock); Set<String> currentNodes = registryClient.getMasterNodesDirectly(); List<Server> masterNodes = registryClient.getServerList(NodeType.MASTER); syncMasterNodes(currentNodes, masterNodes); } catch (Exception e) { logger.error("update master nodes error", e); } finally { registryClient.releaseLock(nodeLock); } } /** * get master nodes * * @return master nodes */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
public Set<String> getMasterNodes() { masterLock.lock(); try { return Collections.unmodifiableSet(masterNodes); } finally { masterLock.unlock(); } } /** * sync master nodes * * @param nodes master nodes * @param masterNodes */ private void syncMasterNodes(Set<String> nodes, List<Server> masterNodes) { masterLock.lock(); try { this.masterNodes.addAll(nodes); this.masterPriorityQueue.clear(); this.masterPriorityQueue.putList(masterNodes); int index = masterPriorityQueue.getIndex(NetUtils.getHost()); if (index >= 0) { MASTER_SIZE = nodes.size(); SLOT_LIST.add(masterPriorityQueue.getIndex(NetUtils.getHost())); } logger.info("update master nodes, master size: {}, slot: {}", MASTER_SIZE, SLOT_LIST.toString() ); } finally { masterLock.unlock();
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
} } /** * sync worker group nodes * * @param workerGroup worker group * @param nodes worker nodes */ private void syncWorkerGroupNodes(String workerGroup, Set<String> nodes) { workerGroupLock.lock(); try { workerGroup = workerGroup.toLowerCase(); Set<String> workerNodes = workerGroupNodes.getOrDefault(workerGroup, new HashSet<>()); workerNodes.clear(); workerNodes.addAll(nodes); workerGroupNodes.put(workerGroup, workerNodes); } finally { workerGroupLock.unlock(); } } public Map<String, Set<String>> getWorkerGroupNodes() { return Collections.unmodifiableMap(workerGroupNodes); } /** * get worker group nodes * * @param workerGroup workerGroup * @return worker nodes */ public Set<String> getWorkerGroupNodes(String workerGroup) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
workerGroupLock.lock(); try { if (StringUtils.isEmpty(workerGroup)) { workerGroup = Constants.DEFAULT_WORKER_GROUP; } workerGroup = workerGroup.toLowerCase(); Set<String> nodes = workerGroupNodes.get(workerGroup); if (CollectionUtils.isNotEmpty(nodes)) { return Collections.unmodifiableSet(nodes); } return nodes; } finally { workerGroupLock.unlock(); } } /** * get worker node info * * @return worker node info */ public Map<String, String> getWorkerNodeInfo() { return Collections.unmodifiableMap(workerNodeInfo); } /** * get worker node info * * @param workerNode worker node * @return worker node info */ public String getWorkerNodeInfo(String workerNode) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/registry/ServerNodeManager.java
workerNodeInfoLock.lock(); try { return workerNodeInfo.getOrDefault(workerNode, null); } finally { workerNodeInfoLock.unlock(); } } /** * sync worker node info * * @param newWorkerNodeInfo new worker node info */ private void syncWorkerNodeInfo(Map<String, String> newWorkerNodeInfo) { workerNodeInfoLock.lock(); try { workerNodeInfo.clear(); workerNodeInfo.putAll(newWorkerNodeInfo); } finally { workerNodeInfoLock.unlock(); } } /** * destroy */ @PreDestroy public void destroy() { executorService.shutdownNow(); } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/registry/WorkerRegistryClient.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.server.worker.registry; import static org.apache.dolphinscheduler.common.Constants.DEFAULT_WORKER_GROUP; import static org.apache.dolphinscheduler.common.Constants.REGISTRY_DOLPHINSCHEDULER_WORKERS;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/registry/WorkerRegistryClient.java
import static org.apache.dolphinscheduler.common.Constants.SINGLE_SLASH; import org.apache.dolphinscheduler.common.Constants; import org.apache.dolphinscheduler.common.IStoppable; import org.apache.dolphinscheduler.common.enums.NodeType; import org.apache.dolphinscheduler.common.utils.DateUtils; import org.apache.dolphinscheduler.common.utils.NetUtils; import org.apache.dolphinscheduler.remote.utils.NamedThreadFactory; import org.apache.dolphinscheduler.server.registry.HeartBeatTask; import org.apache.dolphinscheduler.server.worker.config.WorkerConfig; import org.apache.dolphinscheduler.service.registry.RegistryClient; import org.apache.commons.lang.StringUtils; import java.util.Date; import java.util.Set; import java.util.StringJoiner; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import javax.annotation.PostConstruct; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.google.common.collect.Sets; /** * worker registry */ @Service public class WorkerRegistryClient { private final Logger logger = LoggerFactory.getLogger(WorkerRegistryClient.class); /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/registry/WorkerRegistryClient.java
* worker config */ @Autowired private WorkerConfig workerConfig; /** * heartbeat executor */ private ScheduledExecutorService heartBeatExecutor; private RegistryClient registryClient; /** * worker start time */ private String startTime; private Set<String> workerGroups; @PostConstruct public void initWorkRegistry() { this.workerGroups = workerConfig.getWorkerGroups(); this.startTime = DateUtils.dateToString(new Date()); this.registryClient = RegistryClient.getInstance(); this.heartBeatExecutor = Executors.newSingleThreadScheduledExecutor(new NamedThreadFactory("HeartBeatExecutor")); } /** * registry */ public void registry() { String address = NetUtils.getAddr(workerConfig.getListenPort()); Set<String> workerZkPaths = getWorkerZkPaths(); int workerHeartbeatInterval = workerConfig.getWorkerHeartbeatInterval(); for (String workerZKPath : workerZkPaths) { registryClient.persistEphemeral(workerZKPath, "");
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/registry/WorkerRegistryClient.java
logger.info("worker node : {} registry to ZK {} successfully", address, workerZKPath); } HeartBeatTask heartBeatTask = new HeartBeatTask(startTime, workerConfig.getWorkerMaxCpuloadAvg(), workerConfig.getWorkerReservedMemory(), workerConfig.getHostWeight(), workerZkPaths, Constants.WORKER_TYPE, registryClient); this.heartBeatExecutor.scheduleAtFixedRate(heartBeatTask, workerHeartbeatInterval, workerHeartbeatInterval, TimeUnit.SECONDS); logger.info("worker node : {} heartbeat interval {} s", address, workerHeartbeatInterval); } /** * remove registry info */ public void unRegistry() { String address = getLocalAddress(); Set<String> workerZkPaths = getWorkerZkPaths(); for (String workerZkPath : workerZkPaths) { registryClient.remove(workerZkPath); logger.info("worker node : {} unRegistry from ZK {}.", address, workerZkPath); } this.heartBeatExecutor.shutdownNow(); logger.info("heartbeat executor shutdown"); registryClient.close(); } /** * get worker path */ public Set<String> getWorkerZkPaths() {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,137
[Bug][Master] worker cannot be found if worker start earlier than master.
branch : dev phenomenon: 1 start worker 2 start master 3 start a process instance 4 master cannot find the worker ![image](https://user-images.githubusercontent.com/29528966/132493045-689ed026-b1ae-474e-9479-b71ce4220671.png) then i restart the master, this problem disappeared!
https://github.com/apache/dolphinscheduler/issues/6137
https://github.com/apache/dolphinscheduler/pull/6232
5fead427f227bd6261b677fff600e4f913462c5e
fa0b86ac824fe88acecb64178de87529ad9f2627
"2021-09-08T10:25:33Z"
java
"2021-09-16T07:08:00Z"
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/registry/WorkerRegistryClient.java
Set<String> workerPaths = Sets.newHashSet(); String address = getLocalAddress(); String workerZkPathPrefix = REGISTRY_DOLPHINSCHEDULER_WORKERS; for (String workGroup : this.workerGroups) { StringJoiner workerPathJoiner = new StringJoiner(SINGLE_SLASH); workerPathJoiner.add(workerZkPathPrefix); if (StringUtils.isEmpty(workGroup)) { workGroup = DEFAULT_WORKER_GROUP; } workerPathJoiner.add(workGroup.trim().toLowerCase()); workerPathJoiner.add(address); workerPaths.add(workerPathJoiner.toString()); } return workerPaths; } public void handleDeadServer(Set<String> nodeSet, NodeType nodeType, String opType) throws Exception { registryClient.handleDeadServer(nodeSet, nodeType, opType); } /** * get local address */ private String getLocalAddress() { return NetUtils.getAddr(workerConfig.getListenPort()); } public void setRegistryStoppable(IStoppable stoppable) { registryClient.setStoppable(stoppable); } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
*/ package org.apache.dolphinscheduler.service.process; import static org.apache.dolphinscheduler.common.Constants.CMDPARAM_COMPLEMENT_DATA_END_DATE; import static org.apache.dolphinscheduler.common.Constants.CMDPARAM_COMPLEMENT_DATA_START_DATE; import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_EMPTY_SUB_PROCESS; import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_FATHER_PARAMS; import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_RECOVER_PROCESS_ID_STRING; import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_SUB_PROCESS; import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_SUB_PROCESS_DEFINE_ID; import static org.apache.dolphinscheduler.common.Constants.CMD_PARAM_SUB_PROCESS_PARENT_INSTANCE_ID; import static org.apache.dolphinscheduler.common.Constants.LOCAL_PARAMS; import static org.apache.dolphinscheduler.common.Constants.YYYY_MM_DD_HH_MM_SS; import static java.util.stream.Collectors.toSet; import org.apache.dolphinscheduler.common.Constants; import org.apache.dolphinscheduler.common.enums.AuthorizationType; import org.apache.dolphinscheduler.common.enums.CommandType; import org.apache.dolphinscheduler.common.enums.Direct; import org.apache.dolphinscheduler.common.enums.ExecutionStatus; import org.apache.dolphinscheduler.common.enums.FailureStrategy; import org.apache.dolphinscheduler.common.enums.Flag; import org.apache.dolphinscheduler.common.enums.ReleaseState; import org.apache.dolphinscheduler.common.enums.ResourceType; import org.apache.dolphinscheduler.common.enums.TaskDependType; import org.apache.dolphinscheduler.common.enums.TimeoutFlag; import org.apache.dolphinscheduler.common.enums.WarningType; import org.apache.dolphinscheduler.common.graph.DAG; import org.apache.dolphinscheduler.common.model.DateInterval; import org.apache.dolphinscheduler.common.model.TaskNode; import org.apache.dolphinscheduler.common.model.TaskNodeRelation; import org.apache.dolphinscheduler.common.process.ProcessDag;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
import org.apache.dolphinscheduler.common.process.Property; import org.apache.dolphinscheduler.common.process.ResourceInfo; import org.apache.dolphinscheduler.common.task.AbstractParameters; import org.apache.dolphinscheduler.common.task.TaskTimeoutParameter; import org.apache.dolphinscheduler.common.task.subprocess.SubProcessParameters; import org.apache.dolphinscheduler.common.utils.CollectionUtils; import org.apache.dolphinscheduler.common.utils.DateUtils; import org.apache.dolphinscheduler.common.utils.JSONUtils; import org.apache.dolphinscheduler.common.utils.ParameterUtils; import org.apache.dolphinscheduler.common.utils.SnowFlakeUtils; import org.apache.dolphinscheduler.common.utils.SnowFlakeUtils.SnowFlakeException; import org.apache.dolphinscheduler.common.utils.TaskParametersUtils; import org.apache.dolphinscheduler.dao.entity.Command; import org.apache.dolphinscheduler.dao.entity.DagData; import org.apache.dolphinscheduler.dao.entity.DataSource; import org.apache.dolphinscheduler.dao.entity.Environment; import org.apache.dolphinscheduler.dao.entity.ErrorCommand; import org.apache.dolphinscheduler.dao.entity.ProcessDefinition; import org.apache.dolphinscheduler.dao.entity.ProcessDefinitionLog; import org.apache.dolphinscheduler.dao.entity.ProcessInstance; import org.apache.dolphinscheduler.dao.entity.ProcessInstanceMap; import org.apache.dolphinscheduler.dao.entity.ProcessTaskRelation; import org.apache.dolphinscheduler.dao.entity.ProcessTaskRelationLog; import org.apache.dolphinscheduler.dao.entity.Project; import org.apache.dolphinscheduler.dao.entity.ProjectUser; import org.apache.dolphinscheduler.dao.entity.Resource; import org.apache.dolphinscheduler.dao.entity.Schedule; import org.apache.dolphinscheduler.dao.entity.TaskDefinition; import org.apache.dolphinscheduler.dao.entity.TaskDefinitionLog; import org.apache.dolphinscheduler.dao.entity.TaskInstance;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
import org.apache.dolphinscheduler.dao.entity.Tenant; import org.apache.dolphinscheduler.dao.entity.UdfFunc; import org.apache.dolphinscheduler.dao.entity.User; import org.apache.dolphinscheduler.dao.mapper.CommandMapper; import org.apache.dolphinscheduler.dao.mapper.DataSourceMapper; import org.apache.dolphinscheduler.dao.mapper.EnvironmentMapper; import org.apache.dolphinscheduler.dao.mapper.ErrorCommandMapper; import org.apache.dolphinscheduler.dao.mapper.ProcessDefinitionLogMapper; import org.apache.dolphinscheduler.dao.mapper.ProcessDefinitionMapper; import org.apache.dolphinscheduler.dao.mapper.ProcessInstanceMapMapper; import org.apache.dolphinscheduler.dao.mapper.ProcessInstanceMapper; import org.apache.dolphinscheduler.dao.mapper.ProcessTaskRelationLogMapper; import org.apache.dolphinscheduler.dao.mapper.ProcessTaskRelationMapper; import org.apache.dolphinscheduler.dao.mapper.ProjectMapper; import org.apache.dolphinscheduler.dao.mapper.ResourceMapper; import org.apache.dolphinscheduler.dao.mapper.ResourceUserMapper; import org.apache.dolphinscheduler.dao.mapper.ScheduleMapper; import org.apache.dolphinscheduler.dao.mapper.TaskDefinitionLogMapper; import org.apache.dolphinscheduler.dao.mapper.TaskDefinitionMapper; import org.apache.dolphinscheduler.dao.mapper.TaskInstanceMapper; import org.apache.dolphinscheduler.dao.mapper.TenantMapper; import org.apache.dolphinscheduler.dao.mapper.UdfFuncMapper; import org.apache.dolphinscheduler.dao.mapper.UserMapper; import org.apache.dolphinscheduler.dao.utils.DagHelper; import org.apache.dolphinscheduler.remote.utils.Host; import org.apache.dolphinscheduler.service.log.LogClientService; import org.apache.commons.lang.StringUtils; import java.util.ArrayList; import java.util.Arrays; import java.util.Date;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
import java.util.EnumMap; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Objects; import java.util.Set; import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.facebook.presto.jdbc.internal.guava.collect.Lists; import com.fasterxml.jackson.databind.node.ObjectNode; /** * process relative dao that some mappers in this. */ @Component public class ProcessService { private final Logger logger = LoggerFactory.getLogger(getClass()); private final int[] stateArray = new int[]{ExecutionStatus.SUBMITTED_SUCCESS.ordinal(), ExecutionStatus.RUNNING_EXECUTION.ordinal(), ExecutionStatus.DELAY_EXECUTION.ordinal(), ExecutionStatus.READY_PAUSE.ordinal(), ExecutionStatus.READY_STOP.ordinal()}; @Autowired private UserMapper userMapper;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
@Autowired private ProcessDefinitionMapper processDefineMapper; @Autowired private ProcessDefinitionLogMapper processDefineLogMapper; @Autowired private ProcessInstanceMapper processInstanceMapper; @Autowired private DataSourceMapper dataSourceMapper; @Autowired private ProcessInstanceMapMapper processInstanceMapMapper; @Autowired private TaskInstanceMapper taskInstanceMapper; @Autowired private CommandMapper commandMapper; @Autowired private ScheduleMapper scheduleMapper; @Autowired private UdfFuncMapper udfFuncMapper; @Autowired private ResourceMapper resourceMapper; @Autowired private ResourceUserMapper resourceUserMapper; @Autowired private ErrorCommandMapper errorCommandMapper; @Autowired private TenantMapper tenantMapper; @Autowired private ProjectMapper projectMapper; @Autowired private TaskDefinitionMapper taskDefinitionMapper;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
@Autowired private TaskDefinitionLogMapper taskDefinitionLogMapper; @Autowired private ProcessTaskRelationMapper processTaskRelationMapper; @Autowired private ProcessTaskRelationLogMapper processTaskRelationLogMapper; @Autowired private EnvironmentMapper environmentMapper; /** * handle Command (construct ProcessInstance from Command) , wrapped in transaction * * @param logger logger * @param host host * @param validThreadNum validThreadNum * @param command found command * @return process instance */ @Transactional(rollbackFor = Exception.class) public ProcessInstance handleCommand(Logger logger, String host, int validThreadNum, Command command) { ProcessInstance processInstance = constructProcessInstance(command, host); if (processInstance == null) { logger.error("scan command, command parameter is error: {}", command); moveToErrorCommand(command, "process instance is null"); return null; } if (!checkThreadNum(command, validThreadNum)) { logger.info("there is not enough thread for this command: {}", command); return setWaitingThreadProcess(command, processInstance); }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
processInstance.setCommandType(command.getCommandType()); processInstance.addHistoryCmd(command.getCommandType()); saveProcessInstance(processInstance); this.setSubProcessParam(processInstance); this.commandMapper.deleteById(command.getId()); return processInstance; } /** * save error command, and delete original command * * @param command command * @param message message */ @Transactional(rollbackFor = Exception.class) public void moveToErrorCommand(Command command, String message) { ErrorCommand errorCommand = new ErrorCommand(command, message); this.errorCommandMapper.insert(errorCommand); this.commandMapper.deleteById(command.getId()); } /** * set process waiting thread * * @param command command * @param processInstance processInstance * @return process instance */ private ProcessInstance setWaitingThreadProcess(Command command, ProcessInstance processInstance) { processInstance.setState(ExecutionStatus.WAITING_THREAD); if (command.getCommandType() != CommandType.RECOVER_WAITING_THREAD) { processInstance.addHistoryCmd(command.getCommandType());
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
} saveProcessInstance(processInstance); this.setSubProcessParam(processInstance); createRecoveryWaitingThreadCommand(command, processInstance); return null; } /** * check thread num * * @param command command * @param validThreadNum validThreadNum * @return if thread is enough */ private boolean checkThreadNum(Command command, int validThreadNum) { int commandThreadCount = this.workProcessThreadNumCount(command.getProcessDefinitionCode()); return validThreadNum >= commandThreadCount; } /** * insert one command * * @param command command * @return create result */ public int createCommand(Command command) { int result = 0; if (command != null) { result = commandMapper.insert(command); } return result; }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
/** * find one command from queue list * * @return command */ public Command findOneCommand() { return commandMapper.getOneToRun(); } /** * get command page * * @param pageSize * @param pageNumber * @return */ public List<Command> findCommandPage(int pageSize, int pageNumber) { Page<Command> commandPage = new Page<>(pageNumber, pageSize); return commandMapper.queryCommandPage(commandPage).getRecords(); } /** * check the input command exists in queue list * * @param command command * @return create command result */ public boolean verifyIsNeedCreateCommand(Command command) { boolean isNeedCreate = true; EnumMap<CommandType, Integer> cmdTypeMap = new EnumMap<>(CommandType.class); cmdTypeMap.put(CommandType.REPEAT_RUNNING, 1); cmdTypeMap.put(CommandType.RECOVER_SUSPENDED_PROCESS, 1);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
cmdTypeMap.put(CommandType.START_FAILURE_TASK_PROCESS, 1); CommandType commandType = command.getCommandType(); if (cmdTypeMap.containsKey(commandType)) { ObjectNode cmdParamObj = JSONUtils.parseObject(command.getCommandParam()); int processInstanceId = cmdParamObj.path(CMD_PARAM_RECOVER_PROCESS_ID_STRING).asInt(); List<Command> commands = commandMapper.selectList(null); for (Command tmpCommand : commands) { if (cmdTypeMap.containsKey(tmpCommand.getCommandType())) { ObjectNode tempObj = JSONUtils.parseObject(tmpCommand.getCommandParam()); if (tempObj != null && processInstanceId == tempObj.path(CMD_PARAM_RECOVER_PROCESS_ID_STRING).asInt()) { isNeedCreate = false; break; } } } } return isNeedCreate; } /** * find process instance detail by id * * @param processId processId * @return process instance */ public ProcessInstance findProcessInstanceDetailById(int processId) { return processInstanceMapper.queryDetailById(processId); } /** * get task node list by definitionId
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
*/ public List<TaskDefinition> getTaskNodeListByDefinitionId(Integer defineId) { ProcessDefinition processDefinition = processDefineMapper.selectById(defineId); if (processDefinition == null) { logger.error("process define not exists"); return new ArrayList<>(); } List<ProcessTaskRelationLog> processTaskRelations = processTaskRelationLogMapper.queryByProcessCodeAndVersion(processDefinition.getCode(), processDefinition.getVersion()); Set<TaskDefinition> taskDefinitionSet = new HashSet<>(); for (ProcessTaskRelationLog processTaskRelation : processTaskRelations) { if (processTaskRelation.getPostTaskCode() > 0) { taskDefinitionSet.add(new TaskDefinition(processTaskRelation.getPostTaskCode(), processTaskRelation.getPostTaskVersion())); } } List<TaskDefinitionLog> taskDefinitionLogs = taskDefinitionLogMapper.queryByTaskDefinitions(taskDefinitionSet); return new ArrayList<>(taskDefinitionLogs); } /** * find process instance by id * * @param processId processId * @return process instance */ public ProcessInstance findProcessInstanceById(int processId) { return processInstanceMapper.selectById(processId); } /** * find process define by id. * * @param processDefinitionId processDefinitionId
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
* @return process definition */ public ProcessDefinition findProcessDefineById(int processDefinitionId) { return processDefineMapper.selectById(processDefinitionId); } /** * find process define by code and version. * * @param processDefinitionCode processDefinitionCode * @return process definition */ public ProcessDefinition findProcessDefinition(Long processDefinitionCode, int version) { ProcessDefinition processDefinition = processDefineMapper.queryByCode(processDefinitionCode); if (processDefinition == null || processDefinition.getVersion() != version) { processDefinition = processDefineLogMapper.queryByDefinitionCodeAndVersion(processDefinitionCode, version); if (processDefinition != null) { processDefinition.setId(0); } } return processDefinition; } /** * find process define by code. * * @param processDefinitionCode processDefinitionCode * @return process definition */ public ProcessDefinition findProcessDefinitionByCode(Long processDefinitionCode) { return processDefineMapper.queryByCode(processDefinitionCode); }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
/** * delete work process instance by id * * @param processInstanceId processInstanceId * @return delete process instance result */ public int deleteWorkProcessInstanceById(int processInstanceId) { return processInstanceMapper.deleteById(processInstanceId); } /** * delete all sub process by parent instance id * * @param processInstanceId processInstanceId * @return delete all sub process instance result */ public int deleteAllSubWorkProcessByParentId(int processInstanceId) { List<Integer> subProcessIdList = processInstanceMapMapper.querySubIdListByParentId(processInstanceId); for (Integer subId : subProcessIdList) { deleteAllSubWorkProcessByParentId(subId); deleteWorkProcessMapByParentId(subId); removeTaskLogFile(subId); deleteWorkProcessInstanceById(subId); } return 1; } /** * remove task log file * * @param processInstanceId processInstanceId */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
public void removeTaskLogFile(Integer processInstanceId) { List<TaskInstance> taskInstanceList = findValidTaskListByProcessId(processInstanceId); if (CollectionUtils.isEmpty(taskInstanceList)) { return; } try (LogClientService logClient = new LogClientService()) { for (TaskInstance taskInstance : taskInstanceList) { String taskLogPath = taskInstance.getLogPath(); if (StringUtils.isEmpty(taskInstance.getHost())) { continue; } int port = Constants.RPC_PORT; String ip = ""; try { ip = Host.of(taskInstance.getHost()).getIp(); } catch (Exception e) { ip = taskInstance.getHost(); } logClient.removeTaskLog(ip, port, taskLogPath); } } } /** * calculate sub process number in the process define. * * @param processDefinitionCode processDefinitionCode * @return process thread num count */
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
private Integer workProcessThreadNumCount(long processDefinitionCode) { ProcessDefinition processDefinition = processDefineMapper.queryByCode(processDefinitionCode); List<Integer> ids = new ArrayList<>(); recurseFindSubProcessId(processDefinition.getId(), ids); return ids.size() + 1; } /** * recursive query sub process definition id by parent id. * * @param parentId parentId * @param ids ids */ public void recurseFindSubProcessId(int parentId, List<Integer> ids) { List<TaskDefinition> taskNodeList = this.getTaskNodeListByDefinitionId(parentId); if (taskNodeList != null && !taskNodeList.isEmpty()) { for (TaskDefinition taskNode : taskNodeList) { String parameter = taskNode.getTaskParams(); ObjectNode parameterJson = JSONUtils.parseObject(parameter); if (parameterJson.get(CMD_PARAM_SUB_PROCESS_DEFINE_ID) != null) { SubProcessParameters subProcessParam = JSONUtils.parseObject(parameter, SubProcessParameters.class); ids.add(subProcessParam.getProcessDefinitionId()); recurseFindSubProcessId(subProcessParam.getProcessDefinitionId(), ids); } } } } /** * create recovery waiting thread command when thread pool is not enough for the process instance. * sub work process instance need not to create recovery command. * create recovery waiting thread command and delete origin command at the same time.
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
* if the recovery command is exists, only update the field update_time * * @param originCommand originCommand * @param processInstance processInstance */ public void createRecoveryWaitingThreadCommand(Command originCommand, ProcessInstance processInstance) { if (processInstance.getIsSubProcess() == Flag.YES) { if (originCommand != null) { commandMapper.deleteById(originCommand.getId()); } return; } Map<String, String> cmdParam = new HashMap<>(); cmdParam.put(Constants.CMD_PARAM_RECOVERY_WAITING_THREAD, String.valueOf(processInstance.getId())); if (originCommand == null) { Command command = new Command( CommandType.RECOVER_WAITING_THREAD, processInstance.getTaskDependType(), processInstance.getFailureStrategy(), processInstance.getExecutorId(), processInstance.getProcessDefinition().getCode(), JSONUtils.toJsonString(cmdParam), processInstance.getWarningType(), processInstance.getWarningGroupId(), processInstance.getScheduleTime(), processInstance.getWorkerGroup(), processInstance.getEnvironmentCode(), processInstance.getProcessInstancePriority()
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
); saveCommand(command); return; } if (originCommand.getCommandType() == CommandType.RECOVER_WAITING_THREAD) { originCommand.setUpdateTime(new Date()); saveCommand(originCommand); } else { commandMapper.deleteById(originCommand.getId()); originCommand.setId(0); originCommand.setCommandType(CommandType.RECOVER_WAITING_THREAD); originCommand.setUpdateTime(new Date()); originCommand.setCommandParam(JSONUtils.toJsonString(cmdParam)); originCommand.setProcessInstancePriority(processInstance.getProcessInstancePriority()); saveCommand(originCommand); } } /** * get schedule time from command * * @param command command * @param cmdParam cmdParam map * @return date */ private Date getScheduleTime(Command command, Map<String, String> cmdParam) { Date scheduleTime = command.getScheduleTime(); if (scheduleTime == null && cmdParam != null && cmdParam.containsKey(CMDPARAM_COMPLEMENT_DATA_START_DATE)) { scheduleTime = DateUtils.stringToDate(cmdParam.get(CMDPARAM_COMPLEMENT_DATA_START_DATE));
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
} return scheduleTime; } /** * generate a new work process instance from command. * * @param processDefinition processDefinition * @param command command * @param cmdParam cmdParam map * @return process instance */ private ProcessInstance generateNewProcessInstance(ProcessDefinition processDefinition, Command command, Map<String, String> cmdParam) { ProcessInstance processInstance = new ProcessInstance(processDefinition); processInstance.setProcessDefinitionCode(processDefinition.getCode()); processInstance.setProcessDefinitionVersion(processDefinition.getVersion()); processInstance.setState(ExecutionStatus.RUNNING_EXECUTION); processInstance.setRecovery(Flag.NO); processInstance.setStartTime(new Date()); processInstance.setRunTimes(1); processInstance.setMaxTryTimes(0); processInstance.setCommandParam(command.getCommandParam()); processInstance.setCommandType(command.getCommandType()); processInstance.setIsSubProcess(Flag.NO); processInstance.setTaskDependType(command.getTaskDependType()); processInstance.setFailureStrategy(command.getFailureStrategy()); processInstance.setExecutorId(command.getExecutorId()); WarningType warningType = command.getWarningType() == null ? WarningType.NONE : command.getWarningType();
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
processInstance.setWarningType(warningType); Integer warningGroupId = command.getWarningGroupId() == null ? 0 : command.getWarningGroupId(); processInstance.setWarningGroupId(warningGroupId); Date scheduleTime = getScheduleTime(command, cmdParam); if (scheduleTime != null) { processInstance.setScheduleTime(scheduleTime); } processInstance.setCommandStartTime(command.getStartTime()); processInstance.setLocations(processDefinition.getLocations()); setGlobalParamIfCommanded(processDefinition, cmdParam); processInstance.setGlobalParams(ParameterUtils.curingGlobalParams( processDefinition.getGlobalParamMap(), processDefinition.getGlobalParamList(), getCommandTypeIfComplement(processInstance, command), processInstance.getScheduleTime())); processInstance.setProcessInstancePriority(command.getProcessInstancePriority()); String workerGroup = StringUtils.isBlank(command.getWorkerGroup()) ? Constants.DEFAULT_WORKER_GROUP : command.getWorkerGroup(); processInstance.setWorkerGroup(workerGroup); processInstance.setEnvironmentCode(Objects.isNull(command.getEnvironmentCode()) ? -1 : command.getEnvironmentCode()); processInstance.setTimeout(processDefinition.getTimeout()); processInstance.setTenantId(processDefinition.getTenantId()); return processInstance; } private void setGlobalParamIfCommanded(ProcessDefinition processDefinition, Map<String, String> cmdParam) { Map<String, String> startParamMap = new HashMap<>();
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
if (cmdParam != null && cmdParam.containsKey(Constants.CMD_PARAM_START_PARAMS)) { String startParamJson = cmdParam.get(Constants.CMD_PARAM_START_PARAMS); startParamMap = JSONUtils.toMap(startParamJson); } Map<String, String> fatherParamMap = new HashMap<>(); if (cmdParam != null && cmdParam.containsKey(Constants.CMD_PARAM_FATHER_PARAMS)) { String fatherParamJson = cmdParam.get(Constants.CMD_PARAM_FATHER_PARAMS); fatherParamMap = JSONUtils.toMap(fatherParamJson); } startParamMap.putAll(fatherParamMap); if (startParamMap.size() > 0 && processDefinition.getGlobalParamMap() != null) { for (Map.Entry<String, String> param : processDefinition.getGlobalParamMap().entrySet()) { String val = startParamMap.get(param.getKey()); if (val != null) { param.setValue(val); } } } } /** * get process tenant * there is tenant id in definition, use the tenant of the definition. * if there is not tenant id in the definiton or the tenant not exist * use definition creator's tenant. * * @param tenantId tenantId * @param userId userId * @return tenant
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
*/ public Tenant getTenantForProcess(int tenantId, int userId) { Tenant tenant = null; if (tenantId >= 0) { tenant = tenantMapper.queryById(tenantId); } if (userId == 0) { return null; } if (tenant == null) { User user = userMapper.selectById(userId); tenant = tenantMapper.queryById(user.getTenantId()); } return tenant; } /** * get an environment * use the code of the environment to find a environment. * * @param environmentCode environmentCode * @return Environment */ public Environment findEnvironmentByCode(Long environmentCode) { Environment environment = null; if (environmentCode >= 0) { environment = environmentMapper.queryByEnvironmentCode(environmentCode); } return environment; } /**
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
* check command parameters is valid * * @param command command * @param cmdParam cmdParam map * @return whether command param is valid */ private Boolean checkCmdParam(Command command, Map<String, String> cmdParam) { if (command.getTaskDependType() == TaskDependType.TASK_ONLY || command.getTaskDependType() == TaskDependType.TASK_PRE) { if (cmdParam == null || !cmdParam.containsKey(Constants.CMD_PARAM_START_NODE_NAMES) || cmdParam.get(Constants.CMD_PARAM_START_NODE_NAMES).isEmpty()) { logger.error("command node depend type is {}, but start nodes is null ", command.getTaskDependType()); return false; } } return true; } /** * construct process instance according to one command. * * @param command command * @param host host * @return process instance */ private ProcessInstance constructProcessInstance(Command command, String host) { ProcessInstance processInstance; CommandType commandType = command.getCommandType(); Map<String, String> cmdParam = JSONUtils.toMap(command.getCommandParam()); ProcessDefinition processDefinition = getProcessDefinitionByCommand(command.getProcessDefinitionCode(), cmdParam); if (processDefinition == null) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
logger.error("cannot find the work process define! define code : {}", command.getProcessDefinitionCode()); return null; } if (cmdParam != null) { int processInstanceId = 0; if (cmdParam.containsKey(Constants.CMD_PARAM_RECOVER_PROCESS_ID_STRING)) { String processId = cmdParam.get(Constants.CMD_PARAM_RECOVER_PROCESS_ID_STRING); processInstanceId = Integer.parseInt(processId); if (processInstanceId == 0) { logger.error("command parameter is error, [ ProcessInstanceId ] is 0"); return null; } } else if (cmdParam.containsKey(Constants.CMD_PARAM_SUB_PROCESS)) { String pId = cmdParam.get(Constants.CMD_PARAM_SUB_PROCESS); processInstanceId = Integer.parseInt(pId); } else if (cmdParam.containsKey(Constants.CMD_PARAM_RECOVERY_WAITING_THREAD)) { String pId = cmdParam.get(Constants.CMD_PARAM_RECOVERY_WAITING_THREAD); processInstanceId = Integer.parseInt(pId); } if (processInstanceId == 0) { processInstance = generateNewProcessInstance(processDefinition, command, cmdParam); } else { processInstance = this.findProcessInstanceDetailById(processInstanceId); if (processInstance == null) { return processInstance; } CommandType commandTypeIfComplement = getCommandTypeIfComplement(processInstance, command);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
if (commandTypeIfComplement == CommandType.REPEAT_RUNNING) { setGlobalParamIfCommanded(processDefinition, cmdParam); } processInstance.setGlobalParams(ParameterUtils.curingGlobalParams( processDefinition.getGlobalParamMap(), processDefinition.getGlobalParamList(), commandTypeIfComplement, processInstance.getScheduleTime())); processInstance.setProcessDefinition(processDefinition); } if (processInstance.getCommandParam() != null) { Map<String, String> processCmdParam = JSONUtils.toMap(processInstance.getCommandParam()); for (Map.Entry<String, String> entry : processCmdParam.entrySet()) { if (!cmdParam.containsKey(entry.getKey())) { cmdParam.put(entry.getKey(), entry.getValue()); } } } if (cmdParam.containsKey(Constants.CMD_PARAM_SUB_PROCESS)) { processInstance.setCommandParam(command.getCommandParam()); } } else { processInstance = generateNewProcessInstance(processDefinition, command, cmdParam); } if (Boolean.FALSE.equals(checkCmdParam(command, cmdParam))) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
logger.error("command parameter check failed!"); return null; } if (command.getScheduleTime() != null) { processInstance.setScheduleTime(command.getScheduleTime()); } processInstance.setHost(host); ExecutionStatus runStatus = ExecutionStatus.RUNNING_EXECUTION; int runTime = processInstance.getRunTimes(); switch (commandType) { case START_PROCESS: break; case START_FAILURE_TASK_PROCESS: List<Integer> failedList = this.findTaskIdByInstanceState(processInstance.getId(), ExecutionStatus.FAILURE); List<Integer> toleranceList = this.findTaskIdByInstanceState(processInstance.getId(), ExecutionStatus.NEED_FAULT_TOLERANCE); List<Integer> killedList = this.findTaskIdByInstanceState(processInstance.getId(), ExecutionStatus.KILL); cmdParam.remove(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING); failedList.addAll(killedList); failedList.addAll(toleranceList); for (Integer taskId : failedList) { initTaskInstance(this.findTaskInstanceById(taskId)); } cmdParam.put(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING, String.join(Constants.COMMA, convertIntListToString(failedList))); processInstance.setCommandParam(JSONUtils.toJsonString(cmdParam)); processInstance.setRunTimes(runTime + 1); break; case START_CURRENT_TASK_PROCESS: break;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
case RECOVER_WAITING_THREAD: break; case RECOVER_SUSPENDED_PROCESS: cmdParam.remove(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING); List<Integer> suspendedNodeList = this.findTaskIdByInstanceState(processInstance.getId(), ExecutionStatus.PAUSE); List<Integer> stopNodeList = findTaskIdByInstanceState(processInstance.getId(), ExecutionStatus.KILL); suspendedNodeList.addAll(stopNodeList); for (Integer taskId : suspendedNodeList) { initTaskInstance(this.findTaskInstanceById(taskId)); } cmdParam.put(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING, String.join(",", convertIntListToString(suspendedNodeList))); processInstance.setCommandParam(JSONUtils.toJsonString(cmdParam)); processInstance.setRunTimes(runTime + 1); break; case RECOVER_TOLERANCE_FAULT_PROCESS: processInstance.setRecovery(Flag.YES); runStatus = processInstance.getState(); break; case COMPLEMENT_DATA: List<TaskInstance> taskInstanceList = this.findValidTaskListByProcessId(processInstance.getId()); for (TaskInstance taskInstance : taskInstanceList) { taskInstance.setFlag(Flag.NO); this.updateTaskInstance(taskInstance); } initComplementDataParam(processDefinition, processInstance, cmdParam);
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
break; case REPEAT_RUNNING: if (cmdParam.containsKey(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING)) { cmdParam.remove(Constants.CMD_PARAM_RECOVERY_START_NODE_STRING); processInstance.setCommandParam(JSONUtils.toJsonString(cmdParam)); } List<TaskInstance> validTaskList = findValidTaskListByProcessId(processInstance.getId()); for (TaskInstance taskInstance : validTaskList) { taskInstance.setFlag(Flag.NO); updateTaskInstance(taskInstance); } processInstance.setStartTime(new Date()); processInstance.setEndTime(null); processInstance.setRunTimes(runTime + 1); initComplementDataParam(processDefinition, processInstance, cmdParam); break; case SCHEDULER: break; default: break; } processInstance.setState(runStatus); return processInstance; } /** * get process definition by command * If it is a fault-tolerant command, get the specified version of ProcessDefinition through ProcessInstance * Otherwise, get the latest version of ProcessDefinition
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
* * @return ProcessDefinition */ private ProcessDefinition getProcessDefinitionByCommand(long processDefinitionCode, Map<String, String> cmdParam) { if (cmdParam != null) { int processInstanceId = 0; if (cmdParam.containsKey(Constants.CMD_PARAM_RECOVER_PROCESS_ID_STRING)) { processInstanceId = Integer.parseInt(cmdParam.get(Constants.CMD_PARAM_RECOVER_PROCESS_ID_STRING)); } else if (cmdParam.containsKey(Constants.CMD_PARAM_SUB_PROCESS)) { processInstanceId = Integer.parseInt(cmdParam.get(Constants.CMD_PARAM_SUB_PROCESS)); } else if (cmdParam.containsKey(Constants.CMD_PARAM_RECOVERY_WAITING_THREAD)) { processInstanceId = Integer.parseInt(cmdParam.get(Constants.CMD_PARAM_RECOVERY_WAITING_THREAD)); } if (processInstanceId != 0) { ProcessInstance processInstance = this.findProcessInstanceDetailById(processInstanceId); if (processInstance == null) { return null; } return processDefineLogMapper.queryByDefinitionCodeAndVersion( processInstance.getProcessDefinitionCode(), processInstance.getProcessDefinitionVersion()); } } return processDefineMapper.queryByCode(processDefinitionCode); } /** * return complement data if the process start with complement data * * @param processInstance processInstance * @param command command * @return command type
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
*/ private CommandType getCommandTypeIfComplement(ProcessInstance processInstance, Command command) { if (CommandType.COMPLEMENT_DATA == processInstance.getCmdTypeIfComplement()) { return CommandType.COMPLEMENT_DATA; } else { return command.getCommandType(); } } /** * initialize complement data parameters * * @param processDefinition processDefinition * @param processInstance processInstance * @param cmdParam cmdParam */ private void initComplementDataParam(ProcessDefinition processDefinition, ProcessInstance processInstance, Map<String, String> cmdParam) { if (!processInstance.isComplementData()) { return; } Date startComplementTime = DateUtils.parse(cmdParam.get(CMDPARAM_COMPLEMENT_DATA_START_DATE), YYYY_MM_DD_HH_MM_SS); if (Flag.NO == processInstance.getIsSubProcess()) { processInstance.setScheduleTime(startComplementTime); } processInstance.setGlobalParams(ParameterUtils.curingGlobalParams( processDefinition.getGlobalParamMap(), processDefinition.getGlobalParamList(), CommandType.COMPLEMENT_DATA, processInstance.getScheduleTime()));
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
} /** * set sub work process parameters. * handle sub work process instance, update relation table and command parameters * set sub work process flag, extends parent work process command parameters * * @param subProcessInstance subProcessInstance */ public void setSubProcessParam(ProcessInstance subProcessInstance) { String cmdParam = subProcessInstance.getCommandParam(); if (StringUtils.isEmpty(cmdParam)) { return; } Map<String, String> paramMap = JSONUtils.toMap(cmdParam); if (paramMap.containsKey(CMD_PARAM_SUB_PROCESS) && CMD_PARAM_EMPTY_SUB_PROCESS.equals(paramMap.get(CMD_PARAM_SUB_PROCESS))) { paramMap.remove(CMD_PARAM_SUB_PROCESS); paramMap.put(CMD_PARAM_SUB_PROCESS, String.valueOf(subProcessInstance.getId())); subProcessInstance.setCommandParam(JSONUtils.toJsonString(paramMap)); subProcessInstance.setIsSubProcess(Flag.YES); this.saveProcessInstance(subProcessInstance); } String parentInstanceId = paramMap.get(CMD_PARAM_SUB_PROCESS_PARENT_INSTANCE_ID); if (StringUtils.isNotEmpty(parentInstanceId)) { ProcessInstance parentInstance = findProcessInstanceDetailById(Integer.parseInt(parentInstanceId)); if (parentInstance != null) { subProcessInstance.setGlobalParams( joinGlobalParams(parentInstance.getGlobalParams(), subProcessInstance.getGlobalParams()));
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
this.saveProcessInstance(subProcessInstance); } else { logger.error("sub process command params error, cannot find parent instance: {} ", cmdParam); } } ProcessInstanceMap processInstanceMap = JSONUtils.parseObject(cmdParam, ProcessInstanceMap.class); if (processInstanceMap == null || processInstanceMap.getParentProcessInstanceId() == 0) { return; } processInstanceMap.setProcessInstanceId(subProcessInstance.getId()); this.updateWorkProcessInstanceMap(processInstanceMap); } /** * join parent global params into sub process. * only the keys doesn't in sub process global would be joined. * * @param parentGlobalParams parentGlobalParams * @param subGlobalParams subGlobalParams * @return global params join */ private String joinGlobalParams(String parentGlobalParams, String subGlobalParams) { List<Property> parentPropertyList = JSONUtils.toList(parentGlobalParams, Property.class); List<Property> subPropertyList = JSONUtils.toList(subGlobalParams, Property.class); Map<String, String> subMap = subPropertyList.stream().collect(Collectors.toMap(Property::getProp, Property::getValue)); for (Property parent : parentPropertyList) { if (!subMap.containsKey(parent.getProp())) { subPropertyList.add(parent); } }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
return JSONUtils.toJsonString(subPropertyList); } /** * initialize task instance * * @param taskInstance taskInstance */ private void initTaskInstance(TaskInstance taskInstance) { if (!taskInstance.isSubProcess() && (taskInstance.getState().typeIsCancel() || taskInstance.getState().typeIsFailure())) { taskInstance.setFlag(Flag.NO); updateTaskInstance(taskInstance); return; } taskInstance.setState(ExecutionStatus.SUBMITTED_SUCCESS); updateTaskInstance(taskInstance); } /** * retry submit task to db * * @param taskInstance * @param commitRetryTimes * @param commitInterval * @return */ public TaskInstance submitTask(TaskInstance taskInstance, int commitRetryTimes, int commitInterval) { int retryTimes = 1; boolean submitDB = false; TaskInstance task = null; while (retryTimes <= commitRetryTimes) {
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
try { if (!submitDB) { task = submitTask(taskInstance); if (task != null && task.getId() != 0) { submitDB = true; } } if (!submitDB) { logger.error("task commit to db failed , taskId {} has already retry {} times, please check the database", taskInstance.getId(), retryTimes); } Thread.sleep(commitInterval); } catch (Exception e) { logger.error("task commit to mysql failed", e); } retryTimes += 1; } return task; } /** * submit task to db * submit sub process to command * * @param taskInstance taskInstance * @return task instance */ @Transactional(rollbackFor = Exception.class) public TaskInstance submitTask(TaskInstance taskInstance) { ProcessInstance processInstance = this.findProcessInstanceDetailById(taskInstance.getProcessInstanceId()); logger.info("start submit task : {}, instance id:{}, state: {}",
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
taskInstance.getName(), taskInstance.getProcessInstanceId(), processInstance.getState()); TaskInstance task = submitTaskInstanceToDB(taskInstance, processInstance); if (task == null) { logger.error("end submit task to db error, task name:{}, process id:{} state: {} ", taskInstance.getName(), taskInstance.getProcessInstance(), processInstance.getState()); return task; } if (!task.getState().typeIsFinished()) { createSubWorkProcess(processInstance, task); } logger.info("end submit task to db successfully:{} {} state:{} complete, instance id:{} state: {} ", taskInstance.getId(), taskInstance.getName(), task.getState(), processInstance.getId(), processInstance.getState()); return task; } /** * set work process instance map * consider o * repeat running does not generate new sub process instance * set map {parent instance id, task instance id, 0(child instance id)} * * @param parentInstance parentInstance * @param parentTask parentTask * @return process instance map */ private ProcessInstanceMap setProcessInstanceMap(ProcessInstance parentInstance, TaskInstance parentTask) { ProcessInstanceMap processMap = findWorkProcessMapByParent(parentInstance.getId(), parentTask.getId()); if (processMap != null) { return processMap; }
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
if (parentInstance.getCommandType() == CommandType.REPEAT_RUNNING) { processMap = findPreviousTaskProcessMap(parentInstance, parentTask); if (processMap != null) { processMap.setParentTaskInstanceId(parentTask.getId()); updateWorkProcessInstanceMap(processMap); return processMap; } } processMap = new ProcessInstanceMap(); processMap.setParentProcessInstanceId(parentInstance.getId()); processMap.setParentTaskInstanceId(parentTask.getId()); createWorkProcessInstanceMap(processMap); return processMap; } /** * find previous task work process map. * * @param parentProcessInstance parentProcessInstance * @param parentTask parentTask * @return process instance map */ private ProcessInstanceMap findPreviousTaskProcessMap(ProcessInstance parentProcessInstance, TaskInstance parentTask) { Integer preTaskId = 0; List<TaskInstance> preTaskList = this.findPreviousTaskListByWorkProcessId(parentProcessInstance.getId()); for (TaskInstance task : preTaskList) { if (task.getName().equals(parentTask.getName())) { preTaskId = task.getId();
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
ProcessInstanceMap map = findWorkProcessMapByParent(parentProcessInstance.getId(), preTaskId); if (map != null) { return map; } } } logger.info("sub process instance is not found,parent task:{},parent instance:{}", parentTask.getId(), parentProcessInstance.getId()); return null; } /** * create sub work process command * * @param parentProcessInstance parentProcessInstance * @param task task */ public void createSubWorkProcess(ProcessInstance parentProcessInstance, TaskInstance task) { if (!task.isSubProcess()) { return; } ProcessInstanceMap instanceMap = findWorkProcessMapByParent(parentProcessInstance.getId(), task.getId()); if (null != instanceMap && CommandType.RECOVER_TOLERANCE_FAULT_PROCESS == parentProcessInstance.getCommandType()) { return; } instanceMap = setProcessInstanceMap(parentProcessInstance, task); ProcessInstance childInstance = null; if (instanceMap.getProcessInstanceId() != 0) { childInstance = findProcessInstanceById(instanceMap.getProcessInstanceId());
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
} Command subProcessCommand = createSubProcessCommand(parentProcessInstance, childInstance, instanceMap, task); updateSubProcessDefinitionByParent(parentProcessInstance, subProcessCommand.getProcessDefinitionCode()); initSubInstanceState(childInstance); createCommand(subProcessCommand); logger.info("sub process command created: {} ", subProcessCommand); } /** * complement data needs transform parent parameter to child. */ private String getSubWorkFlowParam(ProcessInstanceMap instanceMap, ProcessInstance parentProcessInstance, Map<String, String> fatherParams) { String processMapStr = JSONUtils.toJsonString(instanceMap); Map<String, String> cmdParam = JSONUtils.toMap(processMapStr); if (parentProcessInstance.isComplementData()) { Map<String, String> parentParam = JSONUtils.toMap(parentProcessInstance.getCommandParam()); String endTime = parentParam.get(CMDPARAM_COMPLEMENT_DATA_END_DATE); String startTime = parentParam.get(CMDPARAM_COMPLEMENT_DATA_START_DATE); cmdParam.put(CMDPARAM_COMPLEMENT_DATA_END_DATE, endTime); cmdParam.put(CMDPARAM_COMPLEMENT_DATA_START_DATE, startTime); processMapStr = JSONUtils.toJsonString(cmdParam); } if (fatherParams.size() != 0) { cmdParam.put(CMD_PARAM_FATHER_PARAMS, JSONUtils.toJsonString(fatherParams)); processMapStr = JSONUtils.toJsonString(cmdParam); } return processMapStr; } public Map<String, String> getGlobalParamMap(String globalParams) { List<Property> propList;
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
Map<String, String> globalParamMap = new HashMap<>(); if (StringUtils.isNotEmpty(globalParams)) { propList = JSONUtils.toList(globalParams, Property.class); globalParamMap = propList.stream().collect(Collectors.toMap(Property::getProp, Property::getValue)); } return globalParamMap; } /** * create sub work process command */ public Command createSubProcessCommand(ProcessInstance parentProcessInstance, ProcessInstance childInstance, ProcessInstanceMap instanceMap, TaskInstance task) { CommandType commandType = getSubCommandType(parentProcessInstance, childInstance); Map<String, String> subProcessParam = JSONUtils.toMap(task.getTaskParams()); int childDefineId = Integer.parseInt(subProcessParam.get(Constants.CMD_PARAM_SUB_PROCESS_DEFINE_ID)); ProcessDefinition processDefinition = processDefineMapper.queryByDefineId(childDefineId); Object localParams = subProcessParam.get(Constants.LOCAL_PARAMS); List<Property> allParam = JSONUtils.toList(JSONUtils.toJsonString(localParams), Property.class); Map<String, String> globalMap = this.getGlobalParamMap(parentProcessInstance.getGlobalParams()); Map<String, String> fatherParams = new HashMap<>(); if (CollectionUtils.isNotEmpty(allParam)) { for (Property info : allParam) { fatherParams.put(info.getProp(), globalMap.get(info.getProp())); } } String processParam = getSubWorkFlowParam(instanceMap, parentProcessInstance, fatherParams); return new Command( commandType,
closed
apache/dolphinscheduler
https://github.com/apache/dolphinscheduler
6,277
[Bug] [Master] tasks submit time error.
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened branch : dev 10 parallel processing tasks in one DAG, run the DAG, you would find the task's submit-time interval is 5 seconds. ### What you expected to happen the parallel processing tasks submit-time should be the same. ### How to reproduce 10 parallel processing tasks in one DAG. run the dag check the submit-time of the tasks. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
https://github.com/apache/dolphinscheduler/issues/6277
https://github.com/apache/dolphinscheduler/pull/6278
540fd9dc0844a4e44dc5485d6001eb0dd18c8257
649723132bc8276ef221c37e7014c0cf6772be60
"2021-09-20T04:03:32Z"
java
"2021-09-20T06:57:53Z"
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java
TaskDependType.TASK_POST, parentProcessInstance.getFailureStrategy(), parentProcessInstance.getExecutorId(), processDefinition.getCode(), processParam, parentProcessInstance.getWarningType(), parentProcessInstance.getWarningGroupId(), parentProcessInstance.getScheduleTime(), task.getWorkerGroup(), task.getEnvironmentCode(), parentProcessInstance.getProcessInstancePriority() ); } /** * initialize sub work flow state * child instance state would be initialized when 'recovery from pause/stop/failure' */ private void initSubInstanceState(ProcessInstance childInstance) { if (childInstance != null) { childInstance.setState(ExecutionStatus.RUNNING_EXECUTION); updateProcessInstance(childInstance); } } /** * get sub work flow command type * child instance exist: child command = fatherCommand * child instance not exists: child command = fatherCommand[0] */ private CommandType getSubCommandType(ProcessInstance parentProcessInstance, ProcessInstance childInstance) { CommandType commandType = parentProcessInstance.getCommandType();