You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2020/01/31 22:20:22 UTC

[GitHub] [hadoop] lukmajercak commented on a change in pull request #1825: HDFS-15151 Use TransmitFile for file to socket data transfer

lukmajercak commented on a change in pull request #1825: HDFS-15151 Use TransmitFile for file to socket data transfer
URL: https://github.com/apache/hadoop/pull/1825#discussion_r373711031
 
 

 ##########
 File path: hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java
 ##########
 @@ -354,6 +347,19 @@ public boolean verifyCanMlock() {
       }
     }
 
+    public static void setConf(Configuration conf) {
+      workaroundNonThreadSafePasswdCalls = conf.getBoolean(
+          WORKAROUND_NON_THREADSAFE_CALLS_KEY,
+          WORKAROUND_NON_THREADSAFE_CALLS_DEFAULT);
+
+      cacheTimeout = conf.getLong(
+          CommonConfigurationKeys.HADOOP_SECURITY_UID_NAME_CACHE_TIMEOUT_KEY,
+          CommonConfigurationKeys.HADOOP_SECURITY_UID_NAME_CACHE_TIMEOUT_DEFAULT) *
+          1000;
+      LOG.debug("Initialized cache for IDs to User/Group mapping with a " +
 
 Review comment:
   This is old code, not in scope of this change.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org