Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]Add MDC log format to Linkis for tracking JobID #4553 #4554

Merged
merged 12 commits into from May 19, 2023

Conversation

peacewong
Copy link
Contributor

What is the purpose of the change

Add the MDC log format to Linkis to track the JobID, which is convenient for locating the cause of task errors

Related issues/PRs

Related issues: #4533

Brief change log

  • Optimize task planner only create job and codeLogical Task
  • Add Job ID information to the log of the entire link of the task
  • Code Optimize

Checklist

  • I have read the Contributing Guidelines on pull requests.
  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the Linkis mailing list first)
  • If this is a code change: I have written unit tests to fully verify the new behavior.

…1-mdc-log

# Conflicts:
#	linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/java/org/apache/linkis/manager/am/service/engine/EngineCreateService.java
#	linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/am/pointer/DefaultEMNodPointer.scala
#	linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/am/service/engine/DefaultEngineAskEngineService.scala
#	linkis-dist/package/conf/log4j2.xml
@@ -63,6 +63,7 @@ abstract class AbstractEngineConnLaunchService extends EngineConnLaunchService w
override def launchEngineConn(request: EngineConnLaunchRequest, duration: Long): EngineNode = {
// 1.创建engineConn和runner,launch 并设置基础属性
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a note in English.

…1-mdc-log

# Conflicts:
#	linkis-computation-governance/linkis-computation-governance-common/src/main/scala/org/apache/linkis/governance/common/conf/GovernanceCommonConf.scala
Copy link
Contributor

@Alexkun Alexkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@Alexkun Alexkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@peacewong peacewong merged commit 7544426 into apache:dev-1.4.0 May 19, 2023
10 checks passed
@peacewong peacewong deleted the dev-1.4.0-part1-mdc-log branch May 21, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants