adutra commented on code in PR #9884: URL: https://github.com/apache/iceberg/pull/9884#discussion_r1516280286
########## core/src/main/java/org/apache/iceberg/io/ResolvingFileIO.java: ########## @@ -53,20 +53,22 @@ public class ResolvingFileIO implements HadoopConfigurable, DelegateFileIO { private static final String S3_FILE_IO_IMPL = "org.apache.iceberg.aws.s3.S3FileIO"; private static final String GCS_FILE_IO_IMPL = "org.apache.iceberg.gcp.gcs.GCSFileIO"; private static final String ADLS_FILE_IO_IMPL = "org.apache.iceberg.azure.adlsv2.ADLSFileIO"; - private static final Map<String, String> SCHEME_TO_FILE_IO = + private static final Map<String, String> DEFAULT_SCHEME_TO_FILE_IO = ImmutableMap.of( "s3", S3_FILE_IO_IMPL, "s3a", S3_FILE_IO_IMPL, "s3n", S3_FILE_IO_IMPL, "gs", GCS_FILE_IO_IMPL, "abfs", ADLS_FILE_IO_IMPL, "abfss", ADLS_FILE_IO_IMPL); + private static final String SCHEME_PROPERTY_PREFIX = "resolving-io.schemes."; private final Map<String, DelegateFileIO> ioInstances = Maps.newConcurrentMap(); private final AtomicBoolean isClosed = new AtomicBoolean(false); private final transient StackTraceElement[] createStack; private SerializableMap<String, String> properties; private SerializableSupplier<Configuration> hadoopConf; + private final Map<String, String> schemeToFileIo = Maps.newHashMap(); Review Comment: @ConeyLiu has changed `ioInstances` to be a concurrent map in 9ec6084cc21217dc27bb5db870fb0d7b607e3ad1, so I suppose there is a reason for that, and that this class is supposed to be accessed concurrently. If this assumption is correct, I think it's important to use a concurrent map here as well. -- 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-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org