diff --git a/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml b/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml index dd3504527ecd9..117b98b446800 100644 --- a/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml +++ b/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml @@ -4468,4 +4468,14 @@ The switch to turn S3A auditing on or off. The AbstractFileSystem for Ozone FileSystem o3fs uri + + fs.$SCHEMA.impl.disable.cache + false + Whether create a new FileSystem instance for schema specified by $SCHEMA or not. + If false and there is a cached FileSystem instance matching the same schema of the URI, + it will be returned. Otherwise,a new FileSystem instance will be created, + initialized with the configuration and URI, cached and returned to the caller. + + + diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestCommonConfigurationFields.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestCommonConfigurationFields.java index 210b36f2dbd1f..9cd7a4d1dd54b 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestCommonConfigurationFields.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestCommonConfigurationFields.java @@ -250,5 +250,6 @@ public void initializeMemberVariables() { xmlPropsToSkipCompare.add("io.seqfile.local.dir"); xmlPropsToSkipCompare.add("hadoop.http.sni.host.check.enabled"); + xmlPropsToSkipCompare.add("fs.$SCHEMA.impl.disable.cache"); } }