aws / aws-sdk-cpp

AWS SDK for C++
Apache License 2.0
1.96k stars 1.05k forks source link

Workaround race condition in ShutdownAPI and logging and custom mem mngmt #2859

Closed SergeyRyabinin closed 7 months ago

SergeyRyabinin commented 7 months ago

Issue #, if available: TEST(AwsMemoryManagementTest, MultiInitParallel) fails once in a blue moon with sanitizer report in case of custom memory management enabled. It is not an issue in case of basic-use non-violated. We really need to refactor the InitAPI-ShutdownAPI design... Description of changes: Preserve the logger for some time to let all pending logging statements to finish. This is a workaround not a real fix. Check all that applies:

Check which platforms you have built SDK on to verify the correctness of this PR.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.