Yanqin Jin
7d8d56413d
Override check consistency for DBImplSecondary ( #5469 )
...
Summary:
`DBImplSecondary` calls `CheckConsistency()` during open. In the past, `DBImplSecondary` did not override this function thus `DBImpl::CheckConsistency()` is called.
The following can happen. The secondary instance is performing consistency check which calls `GetFileSize(file_path)` but the file at `file_path` is deleted by the primary instance. `DBImpl::CheckConsistency` does not account for this and fails the consistency check. This is undesirable. The solution is that, we call `DBImpl::CheckConsistency()` first. If it passes, then we are good. If not, we give it a second chance and handles the case of file(s) being deleted.
Test plan (on dev server):
```
$make clean && make -j20 all
$./db_secondary_test
```
All other existing unit tests must pass as well.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5469
Differential Revision: D15861845
Pulled By: riversand963
fbshipit-source-id: 507d72392508caed3cd003bb2e2aa43f993dd597
2019-06-17 15:39:55 -07:00
..
2019-06-13 15:43:10 -07:00
2019-06-17 15:39:55 -07:00
2019-05-31 11:57:01 -07:00
2019-05-31 17:23:59 -07:00
2019-04-25 11:25:43 -07:00
2019-05-13 17:47:21 -07:00
2019-05-31 15:24:43 -07:00
2019-06-13 15:43:10 -07:00
2019-06-13 15:43:10 -07:00
2019-05-31 11:57:01 -07:00
2019-05-31 11:57:01 -07:00
2019-05-31 15:24:43 -07:00
2019-05-30 17:44:09 -07:00
2019-05-31 11:57:01 -07:00
2019-06-06 13:56:07 -07:00
2019-05-31 11:57:01 -07:00
2019-06-05 23:10:47 -07:00
2017-10-17 08:57:09 -07:00
2019-05-30 11:53:27 -07:00
2019-05-13 17:47:21 -07:00
2019-02-14 14:41:36 -08:00
2019-06-03 22:40:43 -07:00
2018-11-12 16:42:16 -08:00
2019-05-30 11:25:51 -07:00
2019-06-13 14:43:13 -07:00
2019-05-30 11:25:51 -07:00
2019-06-06 13:56:07 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2018-10-29 14:36:31 -07:00
2019-05-30 17:44:09 -07:00
2019-05-30 17:44:09 -07:00
2019-06-11 16:23:41 -07:00
2019-05-31 15:24:43 -07:00
2019-05-30 14:51:11 -07:00
2019-02-14 14:41:36 -08:00
2019-05-15 11:21:48 -07:00
2019-04-02 14:47:16 -07:00
2019-06-17 15:21:50 -07:00
2019-02-15 09:51:41 -08:00
2019-06-04 10:24:14 -07:00
2019-05-30 11:12:59 -07:00
2019-03-01 10:42:09 -08:00
2019-05-30 11:25:51 -07:00
2018-07-17 14:43:18 -07:00
2019-05-30 16:11:27 -07:00
2019-05-13 17:47:21 -07:00
2019-06-06 13:56:07 -07:00
2019-06-14 14:11:10 -07:00
2019-05-30 11:25:51 -07:00
2019-06-13 15:43:10 -07:00
2019-05-30 17:44:09 -07:00
2019-05-31 17:23:59 -07:00
2019-06-06 13:56:07 -07:00
2019-06-05 23:10:47 -07:00
2019-05-31 11:57:01 -07:00
2019-05-30 11:25:51 -07:00
2019-05-31 15:24:43 -07:00
2018-10-04 20:46:50 -07:00
2019-04-22 15:30:07 -07:00
2019-05-31 17:23:59 -07:00
2019-05-31 11:57:01 -07:00
2019-05-30 11:25:51 -07:00
2019-06-06 13:56:07 -07:00
2019-02-12 19:16:17 -08:00
2019-05-30 11:25:51 -07:00
2019-05-31 17:23:59 -07:00
2019-05-30 17:44:09 -07:00
2017-07-15 16:11:23 -07:00
2019-05-30 17:44:09 -07:00
2019-05-31 17:23:59 -07:00
2019-06-13 15:43:10 -07:00
2019-06-06 13:56:07 -07:00
2019-05-31 17:23:59 -07:00
2019-06-10 16:50:26 -07:00
2019-05-13 17:47:21 -07:00
2019-06-06 13:56:07 -07:00
2019-05-31 11:57:01 -07:00
2019-05-30 17:44:09 -07:00
2019-06-06 13:56:07 -07:00
2019-03-19 17:28:19 -07:00
2019-01-15 21:34:38 -08:00
2019-05-31 17:23:59 -07:00
2018-08-24 18:13:20 -07:00
2019-03-26 16:45:31 -07:00
2019-04-24 12:08:44 -07:00
2019-05-30 17:44:09 -07:00
2019-05-21 12:33:17 -07:00
2019-04-25 10:11:41 -07:00
2018-05-03 15:43:09 -07:00
2018-05-03 15:43:09 -07:00
2019-04-11 14:28:26 -07:00
2019-01-03 16:30:12 -08:00
2017-07-15 16:11:23 -07:00
2019-05-30 17:44:09 -07:00
2019-06-13 15:43:10 -07:00
2019-06-06 13:56:07 -07:00
2019-05-31 17:23:59 -07:00
2019-06-05 23:10:47 -07:00
2019-05-30 17:44:09 -07:00
2019-04-11 14:28:26 -07:00
2019-05-30 17:44:09 -07:00
2019-06-04 10:24:14 -07:00
2018-12-17 17:33:46 -08:00
2017-07-15 16:11:23 -07:00
2019-05-31 15:24:43 -07:00
2019-05-31 11:57:01 -07:00
2019-05-31 11:57:01 -07:00
2019-05-30 17:44:09 -07:00
2017-07-15 16:11:23 -07:00
2019-05-31 17:23:59 -07:00
2019-06-10 11:53:31 -07:00
2019-05-31 11:57:01 -07:00
2019-05-30 17:44:09 -07:00
2019-05-30 11:25:51 -07:00
2019-05-31 11:57:01 -07:00
2019-05-31 11:57:01 -07:00
2019-05-30 11:25:51 -07:00
2019-06-06 13:56:07 -07:00
2018-12-17 13:20:51 -08:00
2019-04-12 14:40:41 -07:00
2019-05-31 11:57:01 -07:00
2019-06-13 15:43:10 -07:00
2019-01-16 09:55:32 -08:00
2017-07-15 16:11:23 -07:00
2019-05-03 17:30:22 -07:00
2019-06-13 15:43:10 -07:00
2019-06-13 15:43:10 -07:00
2019-05-31 11:57:01 -07:00
2019-03-18 12:15:34 -07:00
2019-03-18 12:15:34 -07:00
2019-06-06 13:56:07 -07:00
2019-05-29 20:47:06 -07:00
2019-05-31 17:23:59 -07:00
2019-06-06 13:56:07 -07:00
2019-03-26 16:45:31 -07:00
2019-05-30 17:44:09 -07:00
2019-05-31 17:23:59 -07:00
2019-06-04 10:56:19 -07:00
2019-06-13 15:43:10 -07:00
2019-06-17 15:21:50 -07:00
2019-06-13 15:43:10 -07:00
2019-06-13 15:43:10 -07:00
2019-06-06 13:56:07 -07:00
2019-05-24 10:40:30 -07:00
2017-07-15 16:11:23 -07:00
2018-06-28 18:58:29 -07:00
2019-05-30 17:44:09 -07:00
2019-05-31 15:24:43 -07:00
2019-06-10 11:53:31 -07:00
2017-07-15 16:11:23 -07:00
2019-05-30 11:25:51 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2019-05-30 17:44:09 -07:00
2019-01-03 12:40:42 -08:00