Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#13929] DocDB: Fix CDC Service GetChanges when tablet was deleted
Summary: CDC Service has pretty weird logic for tablet peer state. It ignores all failures except IsNotFound. Since before D19068/d4df77709fc39c3cf2fca4d907c6a094898ff2df tablet peer was set, it was not crash. But this logic is naturally wrong, we cannot rely that tablet peer would be non null in case of other failures. So after D19068 it started to crash. Fixed to check for general failure. Test Plan: ybd debug --cxx-test twodc-test --gtest_filter TwoDCTestParams/TwoDCTest.DeleteTableChecksCQL/2 -n 28 Reviewers: slingam Reviewed By: slingam Subscribers: rahuldesirazu, nicolas, bogdan, ybase Differential Revision: https://phabricator.dev.yugabyte.com/D19622
- Loading branch information
Showing
4 changed files
with
40 additions
and
30 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