-
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.
[#3522] Fix Threading Issues with CDC Consumer Writes
Summary: The TwoDCOutputClient was accessing its TwoDCWriteImplementation variable in multiple threads: the CDC Poller thread and the Invoker callback thread. Added it to the class-wide variable lock, added proper safety annotations, and refactored to minimize lock usage on the main data path. Test Plan: BatchSize/TwoDCTest.ApplyOperationsRandomFailures/1 -n 10 --tp 1 Reviewers: rahuldesirazu Reviewed By: rahuldesirazu Subscribers: ybase, bogdan Differential Revision: https://phabricator.dev.yugabyte.com/D9833
- Loading branch information
1 parent
80bf522
commit 220bd5e
Showing
2 changed files
with
76 additions
and
51 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