-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Summary: We had a couple data races in the CDC Poller. 1. Although the poller is called in a serial fashion, critical call stacks are placed upon a ThreadPool. This is not guaranteed to always enqueue on the same thread and can create a situation where the ThreadPool is processing the call before a cache flush of the local data has occured on the originating thread. Added a mutex to guarantee ordering. 2. A race existed within TwoDCOutputClient where failing call OpenTable would not properly reset the OpID or ErrorStatus. Modified code to call HandleError, which has standardized handling here. Test Plan: ybd tsan --cxx-test twodc-test --gtest_filter BatchSize/TwoDCTest.ApplyOperationsRandomFailures/1 -n 1000 Reviewers: rahuldesirazu, neha, hector Reviewed By: neha, hector Subscribers: ybase, bogdan Differential Revision: https://phabricator.dev.yugabyte.com/D8075
- Loading branch information
1 parent
21cd1a0
commit 699caac
Showing
5 changed files
with
37 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters