-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C++] Avoid double initialisation / double finalize of Aws SDK #40262
Comments
Currently, no, but that's a reasonable feature request. Perhaps by adding APIs such as: void MarkS3Initialized();
void MarkS3Finalized(); What do you think? |
Thanks @pitrou. That API makes sense to me. |
It seems that in more recent versions of the aws sdk than I was using, there is code that ignores duplicate Init/Shutdown calls: Perhaps this avoids the need for this altogether. |
Can you take a look and see whether it's good enough for you? |
We have tested wheels with the referenced AWS SDK patch, in 16.0 and 17.0-rc wheels (see #42154), and we believe this issue still exists. |
Describe the usage question you have. Please include as many useful details as possible.
I have pre-existing code that uses the C++ AWS SDK and calls
Aws::InitAPI
andAws::ShutdownAPI
. Now I am using arrow with s3, and it seems to need me to call arrow'sarrow::fs::InitializeS3()
before it will allow me to use theS3FileSystem
. I would prefer to handle SDK initialisation myself, but I don't see a way to tell arrow that "I've already initialised the SDK, don't do it yourself". I would prefer not to add Arrow awareness to all of my existing code.Is there a known workaround for this please?
Component(s)
C++
The text was updated successfully, but these errors were encountered: