Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#9182] Fix return from CatalogManager::ProcessTabletReport
Summary: It could happen that ProcessTabletReport could exit early, for instance because of failure in UpdateItems. In this case it would just destroy rpc tasks, but RetryingTSRpcTask cannot be destroyed w/o calling abort on it. It leads to check failure and process crash. This diff fixes the issue by aborting all planned rpcs tasks with appropriate status. Also extracted two functions ProcessCommittedConsensusState and ProcessTabletReportBatch from ProcessTabletReport. Test Plan: ybd asan --gtest_filter NetworkFailureTest.DisconnectMasterLeader -n 20 Reviewers: timur, bogdan Reviewed By: timur Subscribers: rahuldesirazu, nicolas, skedia, ybase Differential Revision: https://phabricator.dev.yugabyte.com/D12168
- Loading branch information