Skip to content
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

Fix race condition between callback and destructor in TS3ExternalStorage #1745

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

DimasKovas
Copy link
Contributor

Changelog entry

Access the conditional variable RunningQueriesNotifier in the callback under the mutex to prevent a race condition between this access and the TS3ExternalStorage destruction.

Changelog category

  • Not for changelog (changelog entry is not required)

Additional information

The race is reproducible with ./ya make -ttt ydb/core/tx/schemeshard/ut_export -F=TExportToS3Tests::CorruptedDyNumber --sanitize=thread

Copy link

github-actions bot commented Feb 8, 2024

Hi! Thank you for contributing!
The tests on this PR will run after a maintainer adds an ok-to-test label to this PR manually. Thank you for your patience!

@ivanmorozov333 ivanmorozov333 merged commit a2a4ddb into ydb-platform:main Feb 8, 2024
4 checks passed
@starlinskiy starlinskiy mentioned this pull request Feb 12, 2024
@serbel324 serbel324 mentioned this pull request Feb 13, 2024
@vitstn vitstn mentioned this pull request Feb 16, 2024
azevaykin pushed a commit to azevaykin/ydb that referenced this pull request May 2, 2024
azevaykin pushed a commit to azevaykin/ydb that referenced this pull request May 2, 2024
azevaykin added a commit that referenced this pull request May 2, 2024
Co-authored-by: DimasKovas <34828390+DimasKovas@users.noreply.github.com>
azevaykin added a commit that referenced this pull request May 2, 2024
Co-authored-by: DimasKovas <34828390+DimasKovas@users.noreply.github.com>
@mregrock mregrock mentioned this pull request May 15, 2024
This was referenced Jun 7, 2024
@CyberROFL CyberROFL mentioned this pull request Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants