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 thread sanitizer issues #8

Merged
merged 1 commit into from
Aug 4, 2019
Merged

Fix thread sanitizer issues #8

merged 1 commit into from
Aug 4, 2019

Conversation

greensky00
Copy link
Contributor

  • No thread detaching: all background threads including Asio workers
    should be in control.

  • Changed the type of raft_params from unique_ptr to shared_ptr,
    as it can be dynamically changed and we should guarantee MVCC.

  • ctx_ should use lock around raft_params_, to avoid data race.

  • Fixed some test issues.

* No thread detaching: all background threads including Asio workers
should be in control.

* Changed the type of `raft_params` from `unique_ptr` to `shared_ptr`,
as it can be dynamically changed and we should guarantee MVCC.

* `ctx_` should use lock around `raft_params_`, to avoid data race.

* Fixed some test issues.
@greensky00 greensky00 merged commit c2e035f into eBay:master Aug 4, 2019
JackyWoo pushed a commit to JackyWoo/NuRaft that referenced this pull request Sep 30, 2022
xiaoxichen pushed a commit to xiaoxichen/NuRaft that referenced this pull request Jan 16, 2024
* Make the internal build the modified version, not the committed.

* Updated README.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant