You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/01/16 05:05:56 UTC

[GitHub] [flink] liufangqi commented on a change in pull request #17958: FLINK-25029: Hadoop Caller Context Setting in Flink

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



##########
File path: flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/fs/hdfs/HadoopFsFactory.java
##########
@@ -75,6 +75,12 @@ public FileSystem create(URI fsUri) throws IOException {
         // from here on, we need to handle errors due to missing optional
         // dependency classes
         try {
+            // -- (0) set hadoop caller context
+
+            if (getCurrent() != null && flinkConfig != null) {
+                HadoopUtils.setCallerContext(getCurrent(), flinkConfig);

Review comment:
       THX for your review. First, I think it's not JVM-wide cache, there is a ThreadLoacal was used, I think it's a thread-wide, WDYT?




-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org