liufangqi commented on a change in pull request #17958:
URL: https://github.com/apache/flink/pull/17958#discussion_r761670108



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java
##########
@@ -431,6 +433,14 @@ public Task(
 
         // finally, create the executing thread, but do not start it
         executingThread = new Thread(TASK_THREADS_GROUP, this, 
taskNameWithSubtask);
+
+        //add CallerContext
+        //JID => jobID, JName => jobName, TName => TaskName, and with attempt 
number end.
+        String callerContext = "Flink_Task_"+ "JID_" + jobId +
+                "_TName_" + taskInfo.getTaskName() +
+                "_" + taskInfo.getAttemptNumber();
+        
HadoopUtils.setCallerContext(tmConfig.getOptional(ExecutionOptions.CALLER_CONTEXT_APP_ID)

Review comment:
       @AHeise I think I get your meaning. But maybe a new module/ new File/ 
new interface can cause more influence for the project. I see many same cases 
in <flink-runtime>.I think i can do it in a simple way that I can check the 
hadoop classpath before.




-- 
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]


Reply via email to