pitrou commented on code in PR #38375:
URL: https://github.com/apache/arrow/pull/38375#discussion_r1370386844


##########
python/pyarrow/fs.py:
##########
@@ -54,13 +54,12 @@
     from pyarrow._s3fs import (  # noqa
         AwsDefaultS3RetryStrategy, AwsStandardS3RetryStrategy,
         S3FileSystem, S3LogLevel, S3RetryStrategy, ensure_s3_initialized,
-        finalize_s3, initialize_s3, resolve_s3_region)
+        finalize_s3, ensure_s3_finalized, initialize_s3, resolve_s3_region)
 except ImportError:
     _not_imported.append("S3FileSystem")
 else:
-    ensure_s3_initialized()
     import atexit

Review Comment:
   ```suggestion
       # GH-38364: we don't initialize S3 eagerly as that could lead
       # to crashes at shutdown even when S3 isn't used.
       # Instead, S3 is initialized lazily using `ensure_s3_initialized`
       # in assorted places.
       import atexit
   ```



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