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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

BTS-1868: fix TSan errors #20937

Merged
merged 5 commits into from
May 16, 2024
Merged

BTS-1868: fix TSan errors #20937

merged 5 commits into from
May 16, 2024

Conversation

jsteemann
Copy link
Contributor

@jsteemann jsteemann commented May 15, 2024

Scope & Purpose

Enterprise companion PR: https://github.com/arangodb/enterprise/pull/1484

BTS-1868: fix TSan errors
https://arangodb.atlassian.net/browse/BTS-1868

This PR makes 2 relevant changes:

  • NetworkFeature now shuts down retry requests also in its destructor. Previously retry requests were only shut down in stop() and unprepare(), but if these were not called, retry requests could leak.
  • AuthenticationFeature::INSTANCE was a raw pointer and was accessed and modified without synchronization. This PR turns it into an atomic pointer, so that TSan does not report data races when the member is accessed.

As this PR also removes some includes from central header files and replaces them by forward definitions, a lot of unrelated files also had to be changed so that the previously transitively included header files would be included there.

  • 馃挬 Bugfix
  • 馃崟 New feature
  • 馃敟 Performance improvement
  • 馃敤 Refactoring/simplification

Checklist

  • Tests
    • Regression tests
    • C++ Unit tests
    • integration tests
    • resilience tests
  • 馃摉 CHANGELOG entry made
  • 馃摎 documentation written (release notes, API changes, ...)
  • Backports
    • Backport for 3.12.0: -
    • Backport for 3.11: -
    • Backport for 3.10: -

Related Information

@jsteemann jsteemann added this to the devel milestone May 15, 2024
@jsteemann jsteemann requested review from a team as code owners May 15, 2024 11:05
@cla-bot cla-bot bot added the cla-signed label May 15, 2024
@jsteemann jsteemann mentioned this pull request May 15, 2024
19 tasks
Copy link
Member

@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neunhoef neunhoef merged commit a63b50a into devel May 16, 2024
6 checks passed
@neunhoef neunhoef deleted the bug-fix/BTS-1868 branch May 16, 2024 14:40
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.

None yet

3 participants