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 #20939

Merged
merged 5 commits into from
May 17, 2024
Merged

BTS-1868: fix TSan errors #20939

merged 5 commits into from
May 17, 2024

Conversation

jsteemann
Copy link
Contributor

Scope & Purpose

Backport of #20937
Enterprise companion PR: https://github.com/arangodb/enterprise/pull/1485

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: this PR
    • Backport for 3.10: -

Related Information

@jsteemann jsteemann added this to the 3.11 milestone May 15, 2024
@jsteemann jsteemann requested review from a team as code owners May 15, 2024 13:18
@cla-bot cla-bot bot added the cla-signed label May 15, 2024
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

arangod/GeneralServer/AuthenticationFeature.cpp Outdated Show resolved Hide resolved
arangod/GeneralServer/AuthenticationFeature.cpp Outdated Show resolved Hide resolved
@mpoeter
Copy link
Member

mpoeter commented May 16, 2024

Two small issues, otherwise LGTM

jsteemann and others added 3 commits May 16, 2024 11:44
@KVS85 KVS85 requested a review from mpoeter May 16, 2024 09:48
@KVS85 KVS85 merged commit 1cef7bf into 3.11 May 17, 2024
2 of 3 checks passed
@KVS85 KVS85 deleted the bug-fix-3.11/BTS-1868 branch May 17, 2024 13:52
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

4 participants