choucmei commented on a change in pull request #6731:
URL: https://github.com/apache/dolphinscheduler/pull/6731#discussion_r750942044
##########
File path:
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/LoggerUtils.java
##########
@@ -71,12 +72,14 @@ private LoggerUtils() {
* @return task id format
*/
public static String buildTaskId(String affix,
+ Date firstSubmitTime,
Long processDefineCode,
int processDefineVersion,
int processInstId,
int taskId) {
- // - [taskAppId=TASK-798_1-4084-15210]
- return String.format(" - %s%s-%s_%s-%s-%s]", TASK_APPID_LOG_FORMAT,
affix, processDefineCode, processDefineVersion, processInstId, taskId);
+ // - [taskAppId=TASK-20211107-798_1-4084-15210]
+ String firstSubmitTimeStr = DateUtils.format(firstSubmitTime,
Constants.YYYYMMDD);
+ return String.format(" - %s%s-%s-%s_%s-%s-%s]", TASK_APPID_LOG_FORMAT,
affix, firstSubmitTimeStr, processDefineCode, processDefineVersion,
processInstId, taskId);
Review comment:
Before
org.apache.dolphinscheduler.server.log.TaskLogDiscriminator#getDiscriminatingValue
replace `-` with `/`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]