apache / apache/arrow

[C++] Avoid double initialisation / double finalize of Aws SDK

Open
#40,262 6 comments 0 reactions 0 assignees View on GitHub
Component: C++ Type: usage
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### 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` and `Aws::ShutdownAPI`. Now I am using arrow with s3, and it seems to need me to call _arrow_'s `arrow::fs::InitializeS3()` before it will allow me to use the `S3FileSystem`. 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++

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.