-
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.
ENG-3612: Fix to execute GetSegmentsSnapshot using lock
Summary: There still could be a case when LogReader becomes null during remote bootstrap and shutdown process. So instead of calling GetSegmentsSnapshot directly from the remote bootstrap session, we introduce intermediate GetSegmentsSnapshot in Log, that will make sure the reader is alive while GetSegmentsSnapshot is executed. Test Plan: ybd --cxx-test redisserver_redisserver-test --gtest_filter TestRedisService.AbortQueueOnShutdown -n 1000 -- -p 12 Reviewers: mikhail, bogdan, bharat, hector Reviewed By: hector Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D5322
- Loading branch information
Showing
3 changed files
with
12 additions
and
1 deletion.
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