You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "pitrou (via GitHub)" <gi...@apache.org> on 2024/02/29 18:12:33 UTC
[PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
pitrou opened a new pull request, #40299:
URL: https://github.com/apache/arrow/pull/40299
<!--
Thanks for opening a pull request!
If this is your first pull request you can find detailed information on how
to contribute here:
* [New Contributor's Guide](https://arrow.apache.org/docs/dev/developers/guide/step_by_step/pr_lifecycle.html#reviews-and-merge-of-the-pull-request)
* [Contributing Overview](https://arrow.apache.org/docs/dev/developers/overview.html)
If this is not a [minor PR](https://github.com/apache/arrow/blob/main/CONTRIBUTING.md#Minor-Fixes). Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose
Opening GitHub issues ahead of time contributes to the [Openness](http://theapacheway.com/open/#:~:text=Openness%20allows%20new%20users%20the,must%20happen%20in%20the%20open.) of the Apache Arrow project.
Then could you also rename the pull request title in the following format?
GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}
or
MINOR: [${COMPONENT}] ${SUMMARY}
In the case of PARQUET issues on JIRA the title also supports:
PARQUET-${JIRA_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}
-->
### Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
-->
### What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
-->
### Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
-->
### Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please uncomment the line below and explain which changes are breaking.
-->
<!-- **This PR includes breaking changes to public APIs.** -->
<!--
Please uncomment the line below (and provide explanation) if the changes fix either (a) a security vulnerability, (b) a bug that caused incorrect or invalid data to be produced, or (c) a bug that causes a crash (even when the API contract is upheld). We use this to highlight fixes to issues that may affect users without their knowledge. For this reason, fixing bugs that cause errors don't count, since those are usually obvious.
-->
<!-- **This PR contains a "Critical Fix".** -->
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1971993229
Revision: 2be51947448aac17da5eb4e7b284483da72f7f41
Submitted crossbow builds: [ursacomputing/crossbow @ actions-14c6d115c7](https://github.com/ursacomputing/crossbow/branches/all?query=actions-14c6d115c7)
|Task|Status|
|----|------|
|test-alpine-linux-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830439/job/22146157425)|
|test-build-cpp-fuzz|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829508/job/22146151767)|
|test-conda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829771/job/22146152526)|
|test-conda-cpp-valgrind|[](https://github.com/ursacomputing/crossbow/runs/22146156787)|
|test-conda-python-3.10|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829890/job/22146153191)|
|test-conda-python-3.10-cython2|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830199/job/22146155833)|
|test-conda-python-3.10-hdfs-2.9.2|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830282/job/22146156642)|
|test-conda-python-3.10-hdfs-3.2.1|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829100/job/22146150179)|
|test-conda-python-3.10-pandas-latest|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829961/job/22146153498)|
|test-conda-python-3.10-pandas-nightly|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829481/job/22146151543)|
|test-conda-python-3.10-spark-v3.5.0|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830532/job/22146157600)|
|test-conda-python-3.10-substrait|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830205/job/22146155843)|
|test-conda-python-3.11|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829263/job/22146150826)|
|test-conda-python-3.11-dask-latest|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830455/job/22146157417)|
|test-conda-python-3.11-dask-upstream_devel|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829324/job/22146150990)|
|test-conda-python-3.11-hypothesis|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830158/job/22146155024)|
|test-conda-python-3.11-pandas-upstream_devel|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830699/job/22146158964)|
|test-conda-python-3.11-spark-master|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829983/job/22146154868)|
|test-conda-python-3.12|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829432/job/22146151502)|
|test-conda-python-3.8|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829986/job/22146153902)|
|test-conda-python-3.8-pandas-1.0|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830011/job/22146154111)|
|test-conda-python-3.8-spark-v3.5.0|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830376/job/22146157231)|
|test-conda-python-3.9|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830689/job/22146158945)|
|test-conda-python-3.9-pandas-latest|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830649/job/22146158888)|
|test-cuda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829779/job/22146152807)|
|test-cuda-python|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830221/job/22146155884)|
|test-debian-11-cpp-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829768/job/22146152826)|
|test-debian-11-cpp-i386|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830092/job/22146154876)|
|test-debian-11-python-3-amd64|[](https://github.com/ursacomputing/crossbow/runs/22146155858)|
|test-debian-11-python-3-i386|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830615/job/22146157893)|
|test-fedora-39-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829561/job/22146152111)|
|test-fedora-39-python-3|[](https://github.com/ursacomputing/crossbow/runs/22146153689)|
|test-ubuntu-20.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830545/job/22146157611)|
|test-ubuntu-20.04-cpp-bundled|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830341/job/22146156673)|
|test-ubuntu-20.04-cpp-minimal-with-formats|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829760/job/22146152823)|
|test-ubuntu-20.04-cpp-thread-sanitizer|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830519/job/22146157447)|
|test-ubuntu-20.04-python-3|[](https://github.com/ursacomputing/crossbow/runs/22146154459)|
|test-ubuntu-22.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830038/job/22146154142)|
|test-ubuntu-22.04-cpp-20|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830141/job/22146155016)|
|test-ubuntu-22.04-cpp-no-threading|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830577/job/22146158738)|
|test-ubuntu-22.04-python-3|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829189/job/22146150564)|
|wheel-macos-big-sur-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830098/job/22146155022)|
|wheel-macos-big-sur-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830670/job/22146158931)|
|wheel-macos-big-sur-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829894/job/22146153156)|
|wheel-macos-big-sur-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830704/job/22146159079)|
|wheel-macos-big-sur-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830169/job/22146155187)|
|wheel-macos-catalina-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829822/job/22146152534)|
|wheel-macos-catalina-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829471/job/22146151801)|
|wheel-macos-catalina-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830029/job/22146154103)|
|wheel-macos-catalina-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830408/job/22146157244)|
|wheel-macos-catalina-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830492/job/22146157470)|
|wheel-manylinux-2-28-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829419/job/22146151406)|
|wheel-manylinux-2-28-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830781/job/22146187715)|
|wheel-manylinux-2-28-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830720/job/22146187647)|
|wheel-manylinux-2-28-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829290/job/22146150862)|
|wheel-manylinux-2-28-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829970/job/22146154861)|
|wheel-manylinux-2-28-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830617/job/22146158783)|
|wheel-manylinux-2-28-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830037/job/22146154869)|
|wheel-manylinux-2-28-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829160/job/22146150245)|
|wheel-manylinux-2-28-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830155/job/22146155034)|
|wheel-manylinux-2-28-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829166/job/22146150221)|
|wheel-manylinux-2014-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830592/job/22146157672)|
|wheel-manylinux-2014-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830842/job/22146187826)|
|wheel-manylinux-2014-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829931/job/22146153601)|
|wheel-manylinux-2014-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829625/job/22146152336)|
|wheel-manylinux-2014-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830551/job/22146157695)|
|wheel-manylinux-2014-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830598/job/22146157803)|
|wheel-manylinux-2014-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830196/job/22146155834)|
|wheel-manylinux-2014-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830800/job/22146187651)|
|wheel-manylinux-2014-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830745/job/22146187645)|
|wheel-manylinux-2014-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829465/job/22146151533)|
|wheel-windows-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829946/job/22146153559)|
|wheel-windows-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830343/job/22146157218)|
|wheel-windows-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829591/job/22146152283)|
|wheel-windows-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102830232/job/22146156516)|
|wheel-windows-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8102829235/job/22146150764)|
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1971691111
@github-actions crossbow submit -g cpp -g python -g wheel
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1997751953
@github-actions crossbow submit -g cpp -g wheel
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1972364724
> Oh, it looks like the RTools 40 build is using a very old AWS SDK version (1.7.365):
It seems that RTools 40 still uses old MSYS2.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1971697010
Revision: 35c040f089f84578fcb8032ce6a04525fa86ffbb
Submitted crossbow builds: [ursacomputing/crossbow @ actions-4a39636abd](https://github.com/ursacomputing/crossbow/branches/all?query=actions-4a39636abd)
|Task|Status|
|----|------|
|test-alpine-linux-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8100682745/job/22139225171)|
|test-build-cpp-fuzz|[](https://github.com/ursacomputing/crossbow/actions/runs/8100682926/job/22139225539)|
|test-conda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684589/job/22139232086)|
|test-conda-cpp-valgrind|[](https://github.com/ursacomputing/crossbow/runs/22139228903)|
|test-conda-python-3.10|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684485/job/22139231781)|
|test-conda-python-3.10-cython2|[](https://github.com/ursacomputing/crossbow/actions/runs/8100685288/job/22139270576)|
|test-conda-python-3.10-hdfs-2.9.2|[](https://github.com/ursacomputing/crossbow/actions/runs/8100682921/job/22139225441)|
|test-conda-python-3.10-hdfs-3.2.1|[](https://github.com/ursacomputing/crossbow/actions/runs/8100685292/job/22139270552)|
|test-conda-python-3.10-pandas-latest|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684692/job/22139232502)|
|test-conda-python-3.10-pandas-nightly|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683486/job/22139227252)|
|test-conda-python-3.10-spark-v3.5.0|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684978/job/22139269749)|
|test-conda-python-3.10-substrait|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684282/job/22139230842)|
|test-conda-python-3.11|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684982/job/22139270008)|
|test-conda-python-3.11-dask-latest|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684743/job/22139268997)|
|test-conda-python-3.11-dask-upstream_devel|[](https://github.com/ursacomputing/crossbow/actions/runs/8100685015/job/22139270286)|
|test-conda-python-3.11-hypothesis|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684319/job/22139231082)|
|test-conda-python-3.11-pandas-upstream_devel|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684950/job/22139270048)|
|test-conda-python-3.11-spark-master|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684626/job/22139232219)|
|test-conda-python-3.12|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683489/job/22139227571)|
|test-conda-python-3.8|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683119/job/22139226060)|
|test-conda-python-3.8-pandas-1.0|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683064/job/22139225947)|
|test-conda-python-3.8-spark-v3.5.0|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684660/job/22139232402)|
|test-conda-python-3.9|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684529/job/22139231989)|
|test-conda-python-3.9-pandas-latest|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684280/job/22139231010)|
|test-cuda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8100685118/job/22139270451)|
|test-cuda-python|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683635/job/22139228389)|
|test-debian-11-cpp-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684029/job/22139230025)|
|test-debian-11-cpp-i386|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683270/job/22139226615)|
|test-debian-11-python-3-amd64|[](https://github.com/ursacomputing/crossbow/runs/22139232725)|
|test-debian-11-python-3-i386|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684904/job/22139269420)|
|test-fedora-39-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683620/job/22139228262)|
|test-fedora-39-python-3|[](https://github.com/ursacomputing/crossbow/runs/22139229809)|
|test-ubuntu-20.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684321/job/22139231091)|
|test-ubuntu-20.04-cpp-bundled|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684363/job/22139231392)|
|test-ubuntu-20.04-cpp-minimal-with-formats|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684896/job/22139269381)|
|test-ubuntu-20.04-cpp-thread-sanitizer|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683280/job/22139226625)|
|test-ubuntu-20.04-python-3|[](https://github.com/ursacomputing/crossbow/runs/22139232129)|
|test-ubuntu-22.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683532/job/22139227699)|
|test-ubuntu-22.04-cpp-20|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684610/job/22139232305)|
|test-ubuntu-22.04-cpp-no-threading|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683080/job/22139225914)|
|test-ubuntu-22.04-python-3|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684968/job/22139269851)|
|wheel-macos-big-sur-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683756/job/22139229044)|
|wheel-macos-big-sur-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683366/job/22139226784)|
|wheel-macos-big-sur-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683625/job/22139228314)|
|wheel-macos-big-sur-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683461/job/22139227184)|
|wheel-macos-big-sur-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684173/job/22139230438)|
|wheel-macos-catalina-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683178/job/22139226252)|
|wheel-macos-catalina-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684510/job/22139231780)|
|wheel-macos-catalina-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100685405/job/22139270735)|
|wheel-macos-catalina-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684466/job/22139231768)|
|wheel-macos-catalina-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683929/job/22139229556)|
|wheel-manylinux-2-28-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683926/job/22139229689)|
|wheel-manylinux-2-28-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683782/job/22139229181)|
|wheel-manylinux-2-28-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684077/job/22139230257)|
|wheel-manylinux-2-28-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684939/job/22139270234)|
|wheel-manylinux-2-28-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683749/job/22139228938)|
|wheel-manylinux-2-28-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100685076/job/22139270267)|
|wheel-manylinux-2-28-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100682740/job/22139225217)|
|wheel-manylinux-2-28-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684286/job/22139230804)|
|wheel-manylinux-2-28-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684758/job/22139268987)|
|wheel-manylinux-2-28-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684735/job/22139268954)|
|wheel-manylinux-2014-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683954/job/22139229670)|
|wheel-manylinux-2014-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684522/job/22139232075)|
|wheel-manylinux-2014-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100682959/job/22139225475)|
|wheel-manylinux-2014-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683902/job/22139229497)|
|wheel-manylinux-2014-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683604/job/22139228179)|
|wheel-manylinux-2014-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683193/job/22139226474)|
|wheel-manylinux-2014-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684015/job/22139229963)|
|wheel-manylinux-2014-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683741/job/22139228722)|
|wheel-manylinux-2014-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683672/job/22139228513)|
|wheel-manylinux-2014-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683189/job/22139226246)|
|wheel-windows-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683533/job/22139227784)|
|wheel-windows-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683419/job/22139226931)|
|wheel-windows-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100684390/job/22139231464)|
|wheel-windows-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683394/job/22139226915)|
|wheel-windows-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8100683566/job/22139227902)|
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1971817319
Revision: 3ba9dca382f1a752020414e0b8a7a1aefc03a53b
Submitted crossbow builds: [ursacomputing/crossbow @ actions-f123b375dd](https://github.com/ursacomputing/crossbow/branches/all?query=actions-f123b375dd)
|Task|Status|
|----|------|
|test-alpine-linux-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526503/job/22141908599)|
|test-build-cpp-fuzz|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526411/job/22141907812)|
|test-conda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526756/job/22141910069)|
|test-conda-cpp-valgrind|[](https://github.com/ursacomputing/crossbow/runs/22141914033)|
|test-cuda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526508/job/22141908727)|
|test-debian-11-cpp-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527113/job/22141912458)|
|test-debian-11-cpp-i386|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526801/job/22141910828)|
|test-fedora-39-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527038/job/22141912432)|
|test-ubuntu-20.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527208/job/22141912709)|
|test-ubuntu-20.04-cpp-bundled|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526994/job/22141911696)|
|test-ubuntu-20.04-cpp-minimal-with-formats|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527501/job/22141913778)|
|test-ubuntu-20.04-cpp-thread-sanitizer|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526687/job/22141909248)|
|test-ubuntu-22.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526657/job/22141909263)|
|test-ubuntu-22.04-cpp-20|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526874/job/22141911068)|
|test-ubuntu-22.04-cpp-no-threading|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527500/job/22141913771)|
|wheel-macos-big-sur-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526161/job/22141906715)|
|wheel-macos-big-sur-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526987/job/22141911479)|
|wheel-macos-big-sur-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526296/job/22141907567)|
|wheel-macos-big-sur-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526685/job/22141909489)|
|wheel-macos-big-sur-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527367/job/22141913619)|
|wheel-macos-catalina-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526867/job/22141910874)|
|wheel-macos-catalina-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526372/job/22141907781)|
|wheel-macos-catalina-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526803/job/22141910810)|
|wheel-macos-catalina-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526370/job/22141908352)|
|wheel-macos-catalina-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526784/job/22141910097)|
|wheel-manylinux-2-28-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527503/job/22141913845)|
|wheel-manylinux-2-28-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526966/job/22141911462)|
|wheel-manylinux-2-28-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527145/job/22141912484)|
|wheel-manylinux-2-28-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527155/job/22141912688)|
|wheel-manylinux-2-28-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526197/job/22141906809)|
|wheel-manylinux-2-28-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526316/job/22141907844)|
|wheel-manylinux-2-28-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527734/job/22141914556)|
|wheel-manylinux-2-28-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526164/job/22141906751)|
|wheel-manylinux-2-28-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526832/job/22141910838)|
|wheel-manylinux-2-28-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526407/job/22141908030)|
|wheel-manylinux-2014-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527146/job/22141912481)|
|wheel-manylinux-2014-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527329/job/22141913578)|
|wheel-manylinux-2014-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526274/job/22141907461)|
|wheel-manylinux-2014-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526242/job/22141907241)|
|wheel-manylinux-2014-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526439/job/22141908578)|
|wheel-manylinux-2014-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527484/job/22141913764)|
|wheel-manylinux-2014-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526945/job/22141911484)|
|wheel-manylinux-2014-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526244/job/22141907257)|
|wheel-manylinux-2014-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526930/job/22141911482)|
|wheel-manylinux-2014-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526224/job/22141906948)|
|wheel-windows-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526528/job/22141908912)|
|wheel-windows-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527011/job/22141911749)|
|wheel-windows-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526472/job/22141908802)|
|wheel-windows-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101526632/job/22141909253)|
|wheel-windows-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101527192/job/22141912694)|
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1971988403
@github-actions crossbow submit -g cpp -g python -g wheel
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40279: [C++] Reduce S3Client initialization time [arrow]
Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-2019197670
After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit 3095344d68af3e4353c9ce098d73fe6768bcb626.
There were no benchmark performance regressions. 🎉
The [full Conbench report](https://github.com/apache/arrow/runs/23082937872) has more details. It also includes information about 30 possible false positives for unstable benchmarks that are known to sometimes produce them.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40279: [C++] Reduce S3Client initialization time [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #40299:
URL: https://github.com/apache/arrow/pull/40299#discussion_r1537667914
##########
cpp/src/arrow/filesystem/s3fs.cc:
##########
@@ -913,6 +920,134 @@ Result<std::shared_ptr<S3ClientHolder>> GetClientHolder(
// -----------------------------------------------------------------------
// S3 client factory: build S3Client from S3Options
+#ifdef ARROW_S3_HAS_S3CLIENT_CONFIGURATION
+
+// GH-40279: standard initialization of S3Client creates a new `S3EndpointProvider`
+// every time. Its construction takes 1ms, which makes instantiating every S3Client
+// very costly (see upstream bug report
+// at https://github.com/aws/aws-sdk-cpp/issues/2880).
+// To work around this, we build and cache `S3EndpointProvider` instances
+// for each distinct endpoint configuration, and reuse them whenever possible.
+// Since most applications tend to use a single endpoint configuration, this
+// makes the 1ms setup cost a once-per-process overhead, making it much more
+// bearable - if not ideal.
+
+struct EndpointConfigKey {
+ explicit EndpointConfigKey(const Aws::S3::S3ClientConfiguration& config)
+ : region(config.region),
+ scheme(config.scheme),
+ endpoint_override(config.endpointOverride),
+ use_virtual_addressing(config.useVirtualAddressing) {}
+
+ Aws::String region;
+ Aws::Http::Scheme scheme;
+ Aws::String endpoint_override;
+ bool use_virtual_addressing;
+
+ bool operator==(const EndpointConfigKey& other) const noexcept {
+ return region == other.region && scheme == other.scheme &&
+ endpoint_override == other.endpoint_override &&
+ use_virtual_addressing == other.use_virtual_addressing;
+ }
+};
+
+} // namespace
+} // namespace arrow::fs
+
+template <>
+struct std::hash<arrow::fs::EndpointConfigKey> {
+ std::size_t operator()(const arrow::fs::EndpointConfigKey& key) const noexcept {
+ // A crude hash is sufficient since we expect the cache to remain very small.
+ auto h = std::hash<Aws::String>{};
+ return h(key.region) ^ h(key.endpoint_override);
+ }
+};
+
+namespace arrow::fs {
+namespace {
+
+// EndpointProvider configuration happens in a non-thread-safe way, even
+// when the updates are idempotent. This is a problem when trying to reuse
+// a single EndpointProvider from several clients.
+// To work around this, this class ensures reconfiguration of an existing
+// EndpointProvider is a no-op.
+class InitOnceEndpointProvider : public Aws::S3::S3EndpointProviderBase {
+ public:
+ explicit InitOnceEndpointProvider(
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped)
+ : wrapped_(std::move(wrapped)) {}
+
+ void InitBuiltInParameters(const Aws::S3::S3ClientConfiguration& config) override {}
+
+ void OverrideEndpoint(const Aws::String& endpoint) override {
+ ARROW_LOG(ERROR) << "unexpected call to InitOnceEndpointProvider::OverrideEndpoint";
+ }
+ Aws::S3::Endpoint::S3ClientContextParameters& AccessClientContextParameters() override {
+ ARROW_LOG(ERROR)
+ << "unexpected call to InitOnceEndpointProvider::AccessClientContextParameters";
+ // Need to return a reference to something...
+ return wrapped_->AccessClientContextParameters();
+ }
+
+ const Aws::S3::Endpoint::S3ClientContextParameters& GetClientContextParameters()
+ const override {
+ return wrapped_->GetClientContextParameters();
+ }
+ Aws::Endpoint::ResolveEndpointOutcome ResolveEndpoint(
+ const Aws::Endpoint::EndpointParameters& params) const override {
+ return wrapped_->ResolveEndpoint(params);
+ }
+
+ protected:
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped_;
+};
+
+// A class that instantiates a single EndpointProvider per distinct endpoint
+// configuration and initializes it in a thread-safe way. See earlier comments
+// for rationale.
+class EndpointProviderBuilder {
Review Comment:
Ok, I'll rename.
##########
cpp/src/arrow/filesystem/s3fs.cc:
##########
@@ -913,6 +920,134 @@ Result<std::shared_ptr<S3ClientHolder>> GetClientHolder(
// -----------------------------------------------------------------------
// S3 client factory: build S3Client from S3Options
+#ifdef ARROW_S3_HAS_S3CLIENT_CONFIGURATION
+
+// GH-40279: standard initialization of S3Client creates a new `S3EndpointProvider`
+// every time. Its construction takes 1ms, which makes instantiating every S3Client
+// very costly (see upstream bug report
+// at https://github.com/aws/aws-sdk-cpp/issues/2880).
+// To work around this, we build and cache `S3EndpointProvider` instances
+// for each distinct endpoint configuration, and reuse them whenever possible.
+// Since most applications tend to use a single endpoint configuration, this
+// makes the 1ms setup cost a once-per-process overhead, making it much more
+// bearable - if not ideal.
+
+struct EndpointConfigKey {
+ explicit EndpointConfigKey(const Aws::S3::S3ClientConfiguration& config)
+ : region(config.region),
+ scheme(config.scheme),
+ endpoint_override(config.endpointOverride),
+ use_virtual_addressing(config.useVirtualAddressing) {}
+
+ Aws::String region;
+ Aws::Http::Scheme scheme;
+ Aws::String endpoint_override;
+ bool use_virtual_addressing;
+
+ bool operator==(const EndpointConfigKey& other) const noexcept {
+ return region == other.region && scheme == other.scheme &&
+ endpoint_override == other.endpoint_override &&
+ use_virtual_addressing == other.use_virtual_addressing;
+ }
+};
+
+} // namespace
+} // namespace arrow::fs
+
+template <>
+struct std::hash<arrow::fs::EndpointConfigKey> {
+ std::size_t operator()(const arrow::fs::EndpointConfigKey& key) const noexcept {
+ // A crude hash is sufficient since we expect the cache to remain very small.
+ auto h = std::hash<Aws::String>{};
+ return h(key.region) ^ h(key.endpoint_override);
+ }
+};
+
+namespace arrow::fs {
+namespace {
+
+// EndpointProvider configuration happens in a non-thread-safe way, even
+// when the updates are idempotent. This is a problem when trying to reuse
+// a single EndpointProvider from several clients.
+// To work around this, this class ensures reconfiguration of an existing
+// EndpointProvider is a no-op.
+class InitOnceEndpointProvider : public Aws::S3::S3EndpointProviderBase {
+ public:
+ explicit InitOnceEndpointProvider(
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped)
+ : wrapped_(std::move(wrapped)) {}
+
+ void InitBuiltInParameters(const Aws::S3::S3ClientConfiguration& config) override {}
+
+ void OverrideEndpoint(const Aws::String& endpoint) override {
+ ARROW_LOG(ERROR) << "unexpected call to InitOnceEndpointProvider::OverrideEndpoint";
+ }
+ Aws::S3::Endpoint::S3ClientContextParameters& AccessClientContextParameters() override {
+ ARROW_LOG(ERROR)
+ << "unexpected call to InitOnceEndpointProvider::AccessClientContextParameters";
+ // Need to return a reference to something...
+ return wrapped_->AccessClientContextParameters();
+ }
+
+ const Aws::S3::Endpoint::S3ClientContextParameters& GetClientContextParameters()
+ const override {
+ return wrapped_->GetClientContextParameters();
+ }
+ Aws::Endpoint::ResolveEndpointOutcome ResolveEndpoint(
+ const Aws::Endpoint::EndpointParameters& params) const override {
+ return wrapped_->ResolveEndpoint(params);
+ }
+
+ protected:
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped_;
+};
+
+// A class that instantiates a single EndpointProvider per distinct endpoint
+// configuration and initializes it in a thread-safe way. See earlier comments
+// for rationale.
+class EndpointProviderBuilder {
+ public:
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> Lookup(
+ const Aws::S3::S3ClientConfiguration& config) {
+ auto key = EndpointConfigKey(config);
+ CacheValue* value;
+ {
+ std::unique_lock lock(cache_mutex_);
+ value = &cache_[std::move(key)];
+ }
+ std::call_once(value->once, [&]() {
+ auto endpoint_provider = std::make_shared<Aws::S3::S3EndpointProvider>();
+ endpoint_provider->InitBuiltInParameters(config);
+ value->endpoint_provider =
+ std::make_shared<InitOnceEndpointProvider>(std::move(endpoint_provider));
+ });
+ return value->endpoint_provider;
+ }
+
+ void Reset() {
+ std::unique_lock lock(cache_mutex_);
+ cache_.clear();
+ }
+
+ static EndpointProviderBuilder* Instance() {
+ static EndpointProviderBuilder instance;
+ return &instance;
+ }
+
+ protected:
+ EndpointProviderBuilder() = default;
+
+ struct CacheValue {
+ std::once_flag once;
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> endpoint_provider;
+ };
+
+ std::mutex cache_mutex_;
Review Comment:
I'll change it, thanks.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40279: [C++] Reduce S3Client initialization time [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #40299:
URL: https://github.com/apache/arrow/pull/40299#discussion_r1537664954
##########
cpp/src/arrow/filesystem/s3fs.cc:
##########
@@ -913,6 +920,134 @@ Result<std::shared_ptr<S3ClientHolder>> GetClientHolder(
// -----------------------------------------------------------------------
// S3 client factory: build S3Client from S3Options
+#ifdef ARROW_S3_HAS_S3CLIENT_CONFIGURATION
+
+// GH-40279: standard initialization of S3Client creates a new `S3EndpointProvider`
+// every time. Its construction takes 1ms, which makes instantiating every S3Client
+// very costly (see upstream bug report
+// at https://github.com/aws/aws-sdk-cpp/issues/2880).
+// To work around this, we build and cache `S3EndpointProvider` instances
+// for each distinct endpoint configuration, and reuse them whenever possible.
+// Since most applications tend to use a single endpoint configuration, this
+// makes the 1ms setup cost a once-per-process overhead, making it much more
+// bearable - if not ideal.
+
+struct EndpointConfigKey {
+ explicit EndpointConfigKey(const Aws::S3::S3ClientConfiguration& config)
+ : region(config.region),
+ scheme(config.scheme),
+ endpoint_override(config.endpointOverride),
+ use_virtual_addressing(config.useVirtualAddressing) {}
+
+ Aws::String region;
+ Aws::Http::Scheme scheme;
+ Aws::String endpoint_override;
+ bool use_virtual_addressing;
+
+ bool operator==(const EndpointConfigKey& other) const noexcept {
+ return region == other.region && scheme == other.scheme &&
+ endpoint_override == other.endpoint_override &&
+ use_virtual_addressing == other.use_virtual_addressing;
+ }
+};
+
+} // namespace
+} // namespace arrow::fs
+
+template <>
+struct std::hash<arrow::fs::EndpointConfigKey> {
+ std::size_t operator()(const arrow::fs::EndpointConfigKey& key) const noexcept {
+ // A crude hash is sufficient since we expect the cache to remain very small.
+ auto h = std::hash<Aws::String>{};
+ return h(key.region) ^ h(key.endpoint_override);
+ }
+};
+
+namespace arrow::fs {
+namespace {
+
+// EndpointProvider configuration happens in a non-thread-safe way, even
+// when the updates are idempotent. This is a problem when trying to reuse
+// a single EndpointProvider from several clients.
+// To work around this, this class ensures reconfiguration of an existing
+// EndpointProvider is a no-op.
+class InitOnceEndpointProvider : public Aws::S3::S3EndpointProviderBase {
+ public:
+ explicit InitOnceEndpointProvider(
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped)
+ : wrapped_(std::move(wrapped)) {}
+
+ void InitBuiltInParameters(const Aws::S3::S3ClientConfiguration& config) override {}
+
+ void OverrideEndpoint(const Aws::String& endpoint) override {
+ ARROW_LOG(ERROR) << "unexpected call to InitOnceEndpointProvider::OverrideEndpoint";
+ }
+ Aws::S3::Endpoint::S3ClientContextParameters& AccessClientContextParameters() override {
+ ARROW_LOG(ERROR)
+ << "unexpected call to InitOnceEndpointProvider::AccessClientContextParameters";
+ // Need to return a reference to something...
+ return wrapped_->AccessClientContextParameters();
+ }
+
+ const Aws::S3::Endpoint::S3ClientContextParameters& GetClientContextParameters()
+ const override {
+ return wrapped_->GetClientContextParameters();
+ }
+ Aws::Endpoint::ResolveEndpointOutcome ResolveEndpoint(
+ const Aws::Endpoint::EndpointParameters& params) const override {
+ return wrapped_->ResolveEndpoint(params);
+ }
+
+ protected:
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped_;
+};
+
+// A class that instantiates a single EndpointProvider per distinct endpoint
+// configuration and initializes it in a thread-safe way. See earlier comments
+// for rationale.
+class EndpointProviderBuilder {
+ public:
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> Lookup(
+ const Aws::S3::S3ClientConfiguration& config) {
+ auto key = EndpointConfigKey(config);
+ CacheValue* value;
+ {
+ std::unique_lock lock(cache_mutex_);
+ value = &cache_[std::move(key)];
+ }
+ std::call_once(value->once, [&]() {
+ auto endpoint_provider = std::make_shared<Aws::S3::S3EndpointProvider>();
+ endpoint_provider->InitBuiltInParameters(config);
+ value->endpoint_provider =
+ std::make_shared<InitOnceEndpointProvider>(std::move(endpoint_provider));
+ });
+ return value->endpoint_provider;
+ }
+
+ void Reset() {
+ std::unique_lock lock(cache_mutex_);
+ cache_.clear();
+ }
+
+ static EndpointProviderBuilder* Instance() {
+ static EndpointProviderBuilder instance;
+ return &instance;
+ }
+
+ protected:
Review Comment:
Yes, definitely.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40279: [C++] Reduce S3Client initialization time [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou merged PR #40299:
URL: https://github.com/apache/arrow/pull/40299
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-2013020312
@github-actions crossbow submit -g cpp -g wheel
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1971875206
Revision: 54f0a3453ad801ef38a4df01f1543288dc91536f
Submitted crossbow builds: [ursacomputing/crossbow @ actions-b72df011bb](https://github.com/ursacomputing/crossbow/branches/all?query=actions-b72df011bb)
|Task|Status|
|----|------|
|test-alpine-linux-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956851/job/22143370001)|
|test-build-cpp-fuzz|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956133/job/22143366790)|
|test-conda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956060/job/22143366590)|
|test-conda-cpp-valgrind|[](https://github.com/ursacomputing/crossbow/runs/22143374499)|
|test-cuda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957329/job/22143372334)|
|test-debian-11-cpp-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956559/job/22143368884)|
|test-debian-11-cpp-i386|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957185/job/22143371809)|
|test-fedora-39-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957453/job/22143372976)|
|test-ubuntu-20.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956216/job/22143367231)|
|test-ubuntu-20.04-cpp-bundled|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957060/job/22143371086)|
|test-ubuntu-20.04-cpp-minimal-with-formats|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956986/job/22143370670)|
|test-ubuntu-20.04-cpp-thread-sanitizer|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957885/job/22143373710)|
|test-ubuntu-22.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956293/job/22143367766)|
|test-ubuntu-22.04-cpp-20|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957065/job/22143371094)|
|test-ubuntu-22.04-cpp-no-threading|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957024/job/22143371757)|
|wheel-macos-big-sur-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956853/job/22143370173)|
|wheel-macos-big-sur-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956377/job/22143367848)|
|wheel-macos-big-sur-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957226/job/22143372076)|
|wheel-macos-big-sur-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101955785/job/22143365376)|
|wheel-macos-big-sur-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956209/job/22143367214)|
|wheel-macos-catalina-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957072/job/22143371304)|
|wheel-macos-catalina-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956246/job/22143367297)|
|wheel-macos-catalina-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101955772/job/22143365315)|
|wheel-macos-catalina-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957472/job/22143372982)|
|wheel-macos-catalina-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956373/job/22143368014)|
|wheel-manylinux-2-28-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957501/job/22143373089)|
|wheel-manylinux-2-28-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956467/job/22143368474)|
|wheel-manylinux-2-28-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956664/job/22143369387)|
|wheel-manylinux-2-28-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101955776/job/22143365385)|
|wheel-manylinux-2-28-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956396/job/22143368236)|
|wheel-manylinux-2-28-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956520/job/22143368815)|
|wheel-manylinux-2-28-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956974/job/22143370494)|
|wheel-manylinux-2-28-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957447/job/22143372671)|
|wheel-manylinux-2-28-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956638/job/22143369281)|
|wheel-manylinux-2-28-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956903/job/22143370343)|
|wheel-manylinux-2014-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101955884/job/22143365853)|
|wheel-manylinux-2014-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957129/job/22143371335)|
|wheel-manylinux-2014-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956656/job/22143369443)|
|wheel-manylinux-2014-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956127/job/22143367014)|
|wheel-manylinux-2014-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957143/job/22143371325)|
|wheel-manylinux-2014-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101955897/job/22143365888)|
|wheel-manylinux-2014-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956415/job/22143368175)|
|wheel-manylinux-2014-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956348/job/22143367859)|
|wheel-manylinux-2014-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956580/job/22143368957)|
|wheel-manylinux-2014-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957409/job/22143372595)|
|wheel-windows-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956394/job/22143368195)|
|wheel-windows-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956098/job/22143366760)|
|wheel-windows-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957945/job/22143373647)|
|wheel-windows-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101956152/job/22143366844)|
|wheel-windows-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8101957003/job/22143370600)|
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1971870536
@github-actions crossbow submit -g cpp -g wheel
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40279: [C++] Reduce S3Client initialization time [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #40299:
URL: https://github.com/apache/arrow/pull/40299#discussion_r1537667545
##########
cpp/src/arrow/filesystem/s3fs.cc:
##########
@@ -990,10 +1122,20 @@ class ClientBuilder {
client_config_.maxConnections = std::max(io_context->executor()->GetCapacity(), 25);
}
+ const bool use_virtual_addressing =
+ options_.endpoint_override.empty() || options_.force_virtual_addressing;
+
+#ifdef ARROW_S3_HAS_S3CLIENT_CONFIGURATION
+ client_config_.useVirtualAddressing = use_virtual_addressing;
Review Comment:
No. We just had to pass the argument on older verisons:
https://github.com/aws/aws-sdk-cpp/blob/ffd81252bec92f3e0587e144b07c05f8aed28eb1/aws-cpp-sdk-s3/include/aws/s3/S3Client.h#L460-L465
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40279: [C++] Reduce S3Client initialization time [arrow]
Posted by "felipecrv (via GitHub)" <gi...@apache.org>.
felipecrv commented on code in PR #40299:
URL: https://github.com/apache/arrow/pull/40299#discussion_r1535935204
##########
cpp/src/arrow/filesystem/s3fs.cc:
##########
@@ -913,6 +920,134 @@ Result<std::shared_ptr<S3ClientHolder>> GetClientHolder(
// -----------------------------------------------------------------------
// S3 client factory: build S3Client from S3Options
+#ifdef ARROW_S3_HAS_S3CLIENT_CONFIGURATION
+
+// GH-40279: standard initialization of S3Client creates a new `S3EndpointProvider`
+// every time. Its construction takes 1ms, which makes instantiating every S3Client
+// very costly (see upstream bug report
+// at https://github.com/aws/aws-sdk-cpp/issues/2880).
+// To work around this, we build and cache `S3EndpointProvider` instances
+// for each distinct endpoint configuration, and reuse them whenever possible.
+// Since most applications tend to use a single endpoint configuration, this
+// makes the 1ms setup cost a once-per-process overhead, making it much more
+// bearable - if not ideal.
+
+struct EndpointConfigKey {
+ explicit EndpointConfigKey(const Aws::S3::S3ClientConfiguration& config)
+ : region(config.region),
+ scheme(config.scheme),
+ endpoint_override(config.endpointOverride),
+ use_virtual_addressing(config.useVirtualAddressing) {}
+
+ Aws::String region;
+ Aws::Http::Scheme scheme;
+ Aws::String endpoint_override;
+ bool use_virtual_addressing;
+
+ bool operator==(const EndpointConfigKey& other) const noexcept {
+ return region == other.region && scheme == other.scheme &&
+ endpoint_override == other.endpoint_override &&
+ use_virtual_addressing == other.use_virtual_addressing;
+ }
+};
+
+} // namespace
+} // namespace arrow::fs
+
+template <>
+struct std::hash<arrow::fs::EndpointConfigKey> {
+ std::size_t operator()(const arrow::fs::EndpointConfigKey& key) const noexcept {
+ // A crude hash is sufficient since we expect the cache to remain very small.
+ auto h = std::hash<Aws::String>{};
+ return h(key.region) ^ h(key.endpoint_override);
+ }
+};
+
+namespace arrow::fs {
+namespace {
+
+// EndpointProvider configuration happens in a non-thread-safe way, even
+// when the updates are idempotent. This is a problem when trying to reuse
+// a single EndpointProvider from several clients.
+// To work around this, this class ensures reconfiguration of an existing
+// EndpointProvider is a no-op.
+class InitOnceEndpointProvider : public Aws::S3::S3EndpointProviderBase {
+ public:
+ explicit InitOnceEndpointProvider(
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped)
+ : wrapped_(std::move(wrapped)) {}
+
+ void InitBuiltInParameters(const Aws::S3::S3ClientConfiguration& config) override {}
+
+ void OverrideEndpoint(const Aws::String& endpoint) override {
+ ARROW_LOG(ERROR) << "unexpected call to InitOnceEndpointProvider::OverrideEndpoint";
+ }
+ Aws::S3::Endpoint::S3ClientContextParameters& AccessClientContextParameters() override {
+ ARROW_LOG(ERROR)
+ << "unexpected call to InitOnceEndpointProvider::AccessClientContextParameters";
+ // Need to return a reference to something...
+ return wrapped_->AccessClientContextParameters();
+ }
+
+ const Aws::S3::Endpoint::S3ClientContextParameters& GetClientContextParameters()
+ const override {
+ return wrapped_->GetClientContextParameters();
+ }
+ Aws::Endpoint::ResolveEndpointOutcome ResolveEndpoint(
+ const Aws::Endpoint::EndpointParameters& params) const override {
+ return wrapped_->ResolveEndpoint(params);
+ }
+
+ protected:
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped_;
+};
+
+// A class that instantiates a single EndpointProvider per distinct endpoint
+// configuration and initializes it in a thread-safe way. See earlier comments
+// for rationale.
+class EndpointProviderBuilder {
+ public:
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> Lookup(
+ const Aws::S3::S3ClientConfiguration& config) {
+ auto key = EndpointConfigKey(config);
+ CacheValue* value;
+ {
+ std::unique_lock lock(cache_mutex_);
+ value = &cache_[std::move(key)];
+ }
+ std::call_once(value->once, [&]() {
+ auto endpoint_provider = std::make_shared<Aws::S3::S3EndpointProvider>();
+ endpoint_provider->InitBuiltInParameters(config);
+ value->endpoint_provider =
+ std::make_shared<InitOnceEndpointProvider>(std::move(endpoint_provider));
+ });
+ return value->endpoint_provider;
+ }
+
+ void Reset() {
+ std::unique_lock lock(cache_mutex_);
+ cache_.clear();
+ }
+
+ static EndpointProviderBuilder* Instance() {
+ static EndpointProviderBuilder instance;
+ return &instance;
+ }
+
+ protected:
Review Comment:
Who's extending this class? This could be `private`, right?
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40279: [C++] Reduce S3Client initialization time [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-2013202688
:warning: GitHub issue #40279 **has been automatically assigned in GitHub** to PR creator.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40279: [C++] Reduce S3Client initialization time [arrow]
Posted by "jonkeane (via GitHub)" <gi...@apache.org>.
jonkeane commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-2013400389
The R failures are resolved by #40710
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1971812895
@github-actions crossbow submit -g cpp -g wheel
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1971862256
Oh, it looks like the RTools 40 build is using a very old AWS SDK version (1.7.365):
```
2024-02-29T19:29:45.9968248Z ==> Making package: mingw-w64-arrow 15.0.0.9000-8000 (Thu, Feb 29, 2024 7:29:45 PM)
2024-02-29T19:29:46.0104530Z ==> Checking runtime dependencies...
2024-02-29T19:29:46.0933579Z ==> Installing missing dependencies...
2024-02-29T19:29:46.1681983Z resolving dependencies...
2024-02-29T19:29:46.1816658Z looking for conflicting packages...
2024-02-29T19:29:46.1842088Z
2024-02-29T19:29:46.1846702Z Packages (12) mingw-w64-ucrt-x86_64-boost-1.67.0-9002 mingw-w64-ucrt-x86_64-libssh2-1.11.0-9801 mingw-w64-ucrt-x86_64-nghttp2-1.51.0-1 mingw-w64-ucrt-x86_64-openssl-3.1.1-9800 mingw-w64-ucrt-x86_64-aws-sdk-cpp-1.7.365-1 mingw-w64-ucrt-x86_64-brotli-1.0.9-4 mingw-w64-ucrt-x86_64-curl-8.1.2-9000 mingw-w64-ucrt-x86_64-libutf8proc-2.4.0-2 mingw-w64-ucrt-x86_64-lz4-1.8.2-1 mingw-w64-ucrt-x86_64-re2-20200801-1 mingw-w64-ucrt-x86_64-snappy-1.1.7-2 mingw-w64-ucrt-x86_64-thrift-0.13.0-1
```
Do we know why that is @paleolimbot @jonkeane ?
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-1997758760
Revision: 09dc9982fc9a7d6446df96a85a18e2079f717e98
Submitted crossbow builds: [ursacomputing/crossbow @ actions-0ed3ff1b7a](https://github.com/ursacomputing/crossbow/branches/all?query=actions-0ed3ff1b7a)
|Task|Status|
|----|------|
|test-alpine-linux-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551953/job/22667011208)|
|test-build-cpp-fuzz|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552848/job/22667012732)|
|test-conda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8283550775/job/22666987832)|
|test-conda-cpp-valgrind|[](https://github.com/ursacomputing/crossbow/runs/22666991875)|
|test-cuda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551223/job/22666989905)|
|test-debian-12-cpp-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551175/job/22666989871)|
|test-debian-12-cpp-i386|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551468/job/22666990676)|
|test-fedora-39-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551495/job/22666991012)|
|test-ubuntu-20.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8283550922/job/22666988222)|
|test-ubuntu-20.04-cpp-bundled|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552773/job/22667012783)|
|test-ubuntu-20.04-cpp-minimal-with-formats|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552325/job/22667012234)|
|test-ubuntu-20.04-cpp-thread-sanitizer|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552435/job/22667012479)|
|test-ubuntu-22.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8283550621/job/22666987262)|
|test-ubuntu-22.04-cpp-20|[](https://github.com/ursacomputing/crossbow/actions/runs/8283550611/job/22666987388)|
|test-ubuntu-22.04-cpp-no-threading|[](https://github.com/ursacomputing/crossbow/actions/runs/8283550955/job/22666988336)|
|test-ubuntu-24.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8283550606/job/22666987283)|
|test-ubuntu-24.04-cpp-gcc-14|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551022/job/22666988949)|
|wheel-macos-big-sur-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552692/job/22667012546)|
|wheel-macos-big-sur-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552519/job/22667012531)|
|wheel-macos-big-sur-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551221/job/22666989898)|
|wheel-macos-big-sur-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551765/job/22667010631)|
|wheel-macos-big-sur-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283550986/job/22666988558)|
|wheel-macos-catalina-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551432/job/22666990655)|
|wheel-macos-catalina-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551673/job/22667001863)|
|wheel-macos-catalina-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551850/job/22667010688)|
|wheel-macos-catalina-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551753/job/22667010629)|
|wheel-macos-catalina-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283550912/job/22666988129)|
|wheel-manylinux-2-28-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551944/job/22667010970)|
|wheel-manylinux-2-28-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551367/job/22666990132)|
|wheel-manylinux-2-28-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551183/job/22666989876)|
|wheel-manylinux-2-28-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552127/job/22667012212)|
|wheel-manylinux-2-28-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283550983/job/22666988937)|
|wheel-manylinux-2-28-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551516/job/22667000788)|
|wheel-manylinux-2-28-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551923/job/22667010928)|
|wheel-manylinux-2-28-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551921/job/22667010906)|
|wheel-manylinux-2-28-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551580/job/22667000808)|
|wheel-manylinux-2-28-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551427/job/22666990699)|
|wheel-manylinux-2014-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552112/job/22667012229)|
|wheel-manylinux-2014-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552976/job/22667012782)|
|wheel-manylinux-2014-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551507/job/22666990724)|
|wheel-manylinux-2014-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283550345/job/22666986143)|
|wheel-manylinux-2014-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552121/job/22667011941)|
|wheel-manylinux-2014-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551650/job/22667001848)|
|wheel-manylinux-2014-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552408/job/22667012283)|
|wheel-manylinux-2014-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551840/job/22667010647)|
|wheel-manylinux-2014-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283552441/job/22667012484)|
|wheel-manylinux-2014-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551091/job/22666989354)|
|wheel-windows-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283550573/job/22666987096)|
|wheel-windows-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551067/job/22666989304)|
|wheel-windows-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551085/job/22666989353)|
|wheel-windows-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551554/job/22667000779)|
|wheel-windows-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8283551910/job/22667010927)|
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] EXPERIMENT: [C++] Use S3ClientConfiguration [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #40299:
URL: https://github.com/apache/arrow/pull/40299#issuecomment-2013031881
Revision: 6b770c00b4ff80e2717e312cf53c1c901b6ba0d9
Submitted crossbow builds: [ursacomputing/crossbow @ actions-8946df4af2](https://github.com/ursacomputing/crossbow/branches/all?query=actions-8946df4af2)
|Task|Status|
|----|------|
|test-alpine-linux-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891315/job/22944536869)|
|test-build-cpp-fuzz|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890178/job/22944530635)|
|test-conda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890963/job/22944534598)|
|test-conda-cpp-valgrind|[](https://github.com/ursacomputing/crossbow/runs/22944531994)|
|test-cuda-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891533/job/22944537254)|
|test-debian-12-cpp-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891178/job/22944535666)|
|test-debian-12-cpp-i386|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891044/job/22944534862)|
|test-fedora-39-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891564/job/22944537232)|
|test-ubuntu-20.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889852/job/22944529538)|
|test-ubuntu-20.04-cpp-bundled|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890516/job/22944531712)|
|test-ubuntu-20.04-cpp-minimal-with-formats|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890709/job/22944532235)|
|test-ubuntu-20.04-cpp-thread-sanitizer|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889755/job/22944528452)|
|test-ubuntu-22.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889677/job/22944527785)|
|test-ubuntu-22.04-cpp-20|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890528/job/22944531883)|
|test-ubuntu-22.04-cpp-no-threading|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890079/job/22944529994)|
|test-ubuntu-24.04-cpp|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889710/job/22944527992)|
|test-ubuntu-24.04-cpp-gcc-14|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889553/job/22944527665)|
|wheel-macos-big-sur-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889740/job/22944528480)|
|wheel-macos-big-sur-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891465/job/22944536949)|
|wheel-macos-big-sur-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890813/job/22944533119)|
|wheel-macos-big-sur-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891161/job/22944535669)|
|wheel-macos-big-sur-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891176/job/22944535942)|
|wheel-macos-catalina-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889892/job/22944529105)|
|wheel-macos-catalina-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890600/job/22944531946)|
|wheel-macos-catalina-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891006/job/22944534655)|
|wheel-macos-catalina-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891785/job/22944537528)|
|wheel-macos-catalina-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891185/job/22944535964)|
|wheel-manylinux-2-28-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890719/job/22944532099)|
|wheel-manylinux-2-28-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891597/job/22944537286)|
|wheel-manylinux-2-28-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891786/job/22944537642)|
|wheel-manylinux-2-28-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889595/job/22944527511)|
|wheel-manylinux-2-28-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890215/job/22944530645)|
|wheel-manylinux-2-28-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889878/job/22944528944)|
|wheel-manylinux-2-28-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891016/job/22944534691)|
|wheel-manylinux-2-28-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891235/job/22944536086)|
|wheel-manylinux-2-28-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889581/job/22944527508)|
|wheel-manylinux-2-28-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891536/job/22944537247)|
|wheel-manylinux-2014-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889939/job/22944529030)|
|wheel-manylinux-2014-cp310-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890912/job/22944533130)|
|wheel-manylinux-2014-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891804/job/22944537612)|
|wheel-manylinux-2014-cp311-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890057/job/22944530066)|
|wheel-manylinux-2014-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890806/job/22944533120)|
|wheel-manylinux-2014-cp312-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890941/job/22944533114)|
|wheel-manylinux-2014-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891940/job/22944538367)|
|wheel-manylinux-2014-cp38-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890324/job/22944531090)|
|wheel-manylinux-2014-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891381/job/22944536899)|
|wheel-manylinux-2014-cp39-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890706/job/22944531941)|
|wheel-windows-cp310-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890366/job/22944531583)|
|wheel-windows-cp311-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378890043/job/22944529976)|
|wheel-windows-cp312-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891414/job/22944536931)|
|wheel-windows-cp38-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378889875/job/22944528976)|
|wheel-windows-cp39-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/8378891706/job/22944537523)|
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-40279: [C++] Reduce S3Client initialization time [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on code in PR #40299:
URL: https://github.com/apache/arrow/pull/40299#discussion_r1534696491
##########
cpp/src/arrow/filesystem/s3fs.cc:
##########
@@ -990,10 +1122,20 @@ class ClientBuilder {
client_config_.maxConnections = std::max(io_context->executor()->GetCapacity(), 25);
}
+ const bool use_virtual_addressing =
+ options_.endpoint_override.empty() || options_.force_virtual_addressing;
+
+#ifdef ARROW_S3_HAS_S3CLIENT_CONFIGURATION
+ client_config_.useVirtualAddressing = use_virtual_addressing;
Review Comment:
Do we need `client_config_.payloadSigningPolicy = Aws::Client::AWSAuthV4Signer::PayloadSigningPolicy::Never`?
##########
cpp/src/arrow/filesystem/s3fs.cc:
##########
@@ -913,6 +920,134 @@ Result<std::shared_ptr<S3ClientHolder>> GetClientHolder(
// -----------------------------------------------------------------------
// S3 client factory: build S3Client from S3Options
+#ifdef ARROW_S3_HAS_S3CLIENT_CONFIGURATION
+
+// GH-40279: standard initialization of S3Client creates a new `S3EndpointProvider`
+// every time. Its construction takes 1ms, which makes instantiating every S3Client
+// very costly (see upstream bug report
+// at https://github.com/aws/aws-sdk-cpp/issues/2880).
+// To work around this, we build and cache `S3EndpointProvider` instances
+// for each distinct endpoint configuration, and reuse them whenever possible.
+// Since most applications tend to use a single endpoint configuration, this
+// makes the 1ms setup cost a once-per-process overhead, making it much more
+// bearable - if not ideal.
+
+struct EndpointConfigKey {
+ explicit EndpointConfigKey(const Aws::S3::S3ClientConfiguration& config)
+ : region(config.region),
+ scheme(config.scheme),
+ endpoint_override(config.endpointOverride),
+ use_virtual_addressing(config.useVirtualAddressing) {}
+
+ Aws::String region;
+ Aws::Http::Scheme scheme;
+ Aws::String endpoint_override;
+ bool use_virtual_addressing;
+
+ bool operator==(const EndpointConfigKey& other) const noexcept {
+ return region == other.region && scheme == other.scheme &&
+ endpoint_override == other.endpoint_override &&
+ use_virtual_addressing == other.use_virtual_addressing;
+ }
+};
+
+} // namespace
+} // namespace arrow::fs
+
+template <>
+struct std::hash<arrow::fs::EndpointConfigKey> {
+ std::size_t operator()(const arrow::fs::EndpointConfigKey& key) const noexcept {
+ // A crude hash is sufficient since we expect the cache to remain very small.
+ auto h = std::hash<Aws::String>{};
+ return h(key.region) ^ h(key.endpoint_override);
+ }
+};
+
+namespace arrow::fs {
+namespace {
+
+// EndpointProvider configuration happens in a non-thread-safe way, even
+// when the updates are idempotent. This is a problem when trying to reuse
+// a single EndpointProvider from several clients.
+// To work around this, this class ensures reconfiguration of an existing
+// EndpointProvider is a no-op.
+class InitOnceEndpointProvider : public Aws::S3::S3EndpointProviderBase {
+ public:
+ explicit InitOnceEndpointProvider(
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped)
+ : wrapped_(std::move(wrapped)) {}
+
+ void InitBuiltInParameters(const Aws::S3::S3ClientConfiguration& config) override {}
+
+ void OverrideEndpoint(const Aws::String& endpoint) override {
+ ARROW_LOG(ERROR) << "unexpected call to InitOnceEndpointProvider::OverrideEndpoint";
+ }
+ Aws::S3::Endpoint::S3ClientContextParameters& AccessClientContextParameters() override {
+ ARROW_LOG(ERROR)
+ << "unexpected call to InitOnceEndpointProvider::AccessClientContextParameters";
+ // Need to return a reference to something...
+ return wrapped_->AccessClientContextParameters();
+ }
+
+ const Aws::S3::Endpoint::S3ClientContextParameters& GetClientContextParameters()
+ const override {
+ return wrapped_->GetClientContextParameters();
+ }
+ Aws::Endpoint::ResolveEndpointOutcome ResolveEndpoint(
+ const Aws::Endpoint::EndpointParameters& params) const override {
+ return wrapped_->ResolveEndpoint(params);
+ }
+
+ protected:
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped_;
+};
+
+// A class that instantiates a single EndpointProvider per distinct endpoint
+// configuration and initializes it in a thread-safe way. See earlier comments
+// for rationale.
+class EndpointProviderBuilder {
+ public:
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> Lookup(
+ const Aws::S3::S3ClientConfiguration& config) {
+ auto key = EndpointConfigKey(config);
+ CacheValue* value;
+ {
+ std::unique_lock lock(cache_mutex_);
+ value = &cache_[std::move(key)];
+ }
+ std::call_once(value->once, [&]() {
+ auto endpoint_provider = std::make_shared<Aws::S3::S3EndpointProvider>();
+ endpoint_provider->InitBuiltInParameters(config);
+ value->endpoint_provider =
+ std::make_shared<InitOnceEndpointProvider>(std::move(endpoint_provider));
+ });
+ return value->endpoint_provider;
+ }
+
+ void Reset() {
+ std::unique_lock lock(cache_mutex_);
+ cache_.clear();
+ }
+
+ static EndpointProviderBuilder* Instance() {
+ static EndpointProviderBuilder instance;
+ return &instance;
+ }
+
+ protected:
+ EndpointProviderBuilder() = default;
+
+ struct CacheValue {
+ std::once_flag once;
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> endpoint_provider;
+ };
+
+ std::mutex cache_mutex_;
Review Comment:
I think that `cache_` is redundant in this context because we have only one instance variable (`cache_`) in this class.
```suggestion
std::mutex mutex_;
```
##########
cpp/src/arrow/filesystem/s3fs.cc:
##########
@@ -913,6 +920,134 @@ Result<std::shared_ptr<S3ClientHolder>> GetClientHolder(
// -----------------------------------------------------------------------
// S3 client factory: build S3Client from S3Options
+#ifdef ARROW_S3_HAS_S3CLIENT_CONFIGURATION
+
+// GH-40279: standard initialization of S3Client creates a new `S3EndpointProvider`
+// every time. Its construction takes 1ms, which makes instantiating every S3Client
+// very costly (see upstream bug report
+// at https://github.com/aws/aws-sdk-cpp/issues/2880).
+// To work around this, we build and cache `S3EndpointProvider` instances
+// for each distinct endpoint configuration, and reuse them whenever possible.
+// Since most applications tend to use a single endpoint configuration, this
+// makes the 1ms setup cost a once-per-process overhead, making it much more
+// bearable - if not ideal.
+
+struct EndpointConfigKey {
+ explicit EndpointConfigKey(const Aws::S3::S3ClientConfiguration& config)
+ : region(config.region),
+ scheme(config.scheme),
+ endpoint_override(config.endpointOverride),
+ use_virtual_addressing(config.useVirtualAddressing) {}
+
+ Aws::String region;
+ Aws::Http::Scheme scheme;
+ Aws::String endpoint_override;
+ bool use_virtual_addressing;
+
+ bool operator==(const EndpointConfigKey& other) const noexcept {
+ return region == other.region && scheme == other.scheme &&
+ endpoint_override == other.endpoint_override &&
+ use_virtual_addressing == other.use_virtual_addressing;
+ }
+};
+
+} // namespace
+} // namespace arrow::fs
+
+template <>
+struct std::hash<arrow::fs::EndpointConfigKey> {
+ std::size_t operator()(const arrow::fs::EndpointConfigKey& key) const noexcept {
+ // A crude hash is sufficient since we expect the cache to remain very small.
+ auto h = std::hash<Aws::String>{};
+ return h(key.region) ^ h(key.endpoint_override);
+ }
+};
+
+namespace arrow::fs {
+namespace {
+
+// EndpointProvider configuration happens in a non-thread-safe way, even
+// when the updates are idempotent. This is a problem when trying to reuse
+// a single EndpointProvider from several clients.
+// To work around this, this class ensures reconfiguration of an existing
+// EndpointProvider is a no-op.
+class InitOnceEndpointProvider : public Aws::S3::S3EndpointProviderBase {
+ public:
+ explicit InitOnceEndpointProvider(
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped)
+ : wrapped_(std::move(wrapped)) {}
+
+ void InitBuiltInParameters(const Aws::S3::S3ClientConfiguration& config) override {}
+
+ void OverrideEndpoint(const Aws::String& endpoint) override {
+ ARROW_LOG(ERROR) << "unexpected call to InitOnceEndpointProvider::OverrideEndpoint";
+ }
+ Aws::S3::Endpoint::S3ClientContextParameters& AccessClientContextParameters() override {
+ ARROW_LOG(ERROR)
+ << "unexpected call to InitOnceEndpointProvider::AccessClientContextParameters";
+ // Need to return a reference to something...
+ return wrapped_->AccessClientContextParameters();
+ }
+
+ const Aws::S3::Endpoint::S3ClientContextParameters& GetClientContextParameters()
+ const override {
+ return wrapped_->GetClientContextParameters();
+ }
+ Aws::Endpoint::ResolveEndpointOutcome ResolveEndpoint(
+ const Aws::Endpoint::EndpointParameters& params) const override {
+ return wrapped_->ResolveEndpoint(params);
+ }
+
+ protected:
+ std::shared_ptr<Aws::S3::S3EndpointProviderBase> wrapped_;
+};
+
+// A class that instantiates a single EndpointProvider per distinct endpoint
+// configuration and initializes it in a thread-safe way. See earlier comments
+// for rationale.
+class EndpointProviderBuilder {
Review Comment:
I feel using `Builder` here a bit strange. Because this is not provide a general builder API such as `EndpointProviderBuilder::Build()`.
How about `EndpointProviderCache` or something?
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org