corpoverlords commented on PR #47903: URL: https://github.com/apache/arrow/pull/47903#issuecomment-3504142033
What I think can be done: * `AwsInitHolder`: global static singleton in Arrow where it holds refcount to Aws SDK within Arrow * `AwsInitLock`: a user-declarable RAII object, this class will be used in things that touch S3, for example, `S3FileSystem`, as a class member to hold a reference to `AwsInitHolder`. User can also (inside `main` for example) to reduce AWS init/deinit overhead. * `AwsInitHolder` will hold reference to a thread handle and signal the thread to deinit AWS SDK when refcount reaches zero. -- 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]
