Andrew Kryczka
71f5bcb730
Introduce OnBackgroundError callback
...
Summary:
Some users want to prevent rocksdb from entering read-only mode in certain error cases. This diff gives them a callback, `OnBackgroundError`, that they can use to achieve it.
- call `OnBackgroundError` every time we consider setting `bg_error_`. Use its result to assign `bg_error_` but not to change the function's return status.
- classified calls using `BackgroundErrorReason` to give the callback some info about where the error happened
- renamed `ParanoidCheck` to something more specific so we can provide a clear `BackgroundErrorReason`
- unit tests for the most common cases: flush or compaction errors
Closes https://github.com/facebook/rocksdb/pull/2477
Differential Revision: D5300190
Pulled By: ajkr
fbshipit-source-id: a0ea4564249719b83428e3f4c6ca2c49e366e9b3
2017-06-22 19:41:50 -07:00
..
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-26 12:11:21 -07:00
2017-05-26 12:11:21 -07:00
2017-06-22 15:56:47 -07:00
2017-06-22 15:56:47 -07:00
2017-06-22 15:56:47 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-17 11:42:42 -07:00
2017-06-12 06:41:27 -07:00
2017-06-12 06:41:27 -07:00
2017-05-23 11:12:27 -07:00
2017-04-27 18:06:12 -07:00
2017-06-22 19:41:50 -07:00
2017-04-27 18:06:12 -07:00
2017-06-01 17:56:59 -07:00
2017-06-05 11:27:34 -07:00
2017-04-27 18:06:12 -07:00
2017-05-17 11:42:42 -07:00
2017-04-27 18:06:12 -07:00
2017-05-04 17:43:22 -07:00
2017-06-12 07:12:08 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 17:26:19 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 17:26:19 -07:00
2017-06-02 15:11:38 -07:00
2017-06-13 16:58:01 -07:00
2017-06-02 14:26:56 -07:00
2017-04-27 18:06:12 -07:00
2017-05-23 11:12:27 -07:00
2017-06-22 19:41:50 -07:00
2017-05-24 11:29:08 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-24 11:29:08 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-22 19:41:50 -07:00
2017-06-22 15:56:47 -07:00
2017-06-22 19:41:50 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 17:26:19 -07:00
2017-05-31 07:41:44 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 17:26:19 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 14:26:56 -07:00
2017-05-26 12:11:21 -07:00
2017-05-24 11:29:08 -07:00
2017-06-02 17:26:19 -07:00
2017-06-08 12:43:01 -07:00
2017-06-12 16:57:21 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-13 14:56:46 -07:00
2017-05-31 10:56:45 -07:00
2017-06-02 14:26:56 -07:00
2017-06-05 15:02:35 -07:00
2017-05-17 23:12:36 -07:00
2017-04-27 18:06:12 -07:00
2017-06-20 10:31:13 -07:00
2017-04-27 18:06:12 -07:00
2017-05-05 23:20:01 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-22 19:41:50 -07:00
2017-06-22 19:41:50 -07:00
2017-04-27 18:06:12 -07:00
2017-05-31 13:57:19 -07:00
2017-06-01 22:26:49 -07:00
2017-06-05 11:27:34 -07:00
2017-05-26 12:11:21 -07:00
2017-05-30 11:13:01 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-19 14:26:42 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-05 23:20:01 -07:00
2017-04-27 18:06:12 -07:00
2017-06-12 07:12:08 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-22 19:41:50 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-31 22:43:02 -07:00
2017-05-31 22:43:02 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 12:12:06 -07:00
2017-06-01 22:26:49 -07:00
2017-06-01 22:26:49 -07:00
2017-06-02 14:26:56 -07:00
2017-06-02 14:26:56 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-31 07:41:44 -07:00
2017-05-31 07:41:44 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 17:26:19 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-02 17:26:19 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-22 18:41:28 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-19 11:41:38 -07:00
2017-06-13 14:56:46 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-22 18:41:28 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-06-12 07:12:08 -07:00
2017-05-04 18:16:12 -07:00
2017-06-22 15:56:47 -07:00
2017-06-12 07:12:08 -07:00
2017-04-27 18:06:12 -07:00
2017-05-22 18:41:28 -07:00
2017-04-27 18:06:12 -07:00
2017-04-27 18:06:12 -07:00
2017-05-31 10:56:45 -07:00
2017-06-02 12:12:06 -07:00
2017-05-31 10:56:45 -07:00
2017-05-22 10:27:23 -07:00
2016-02-09 15:12:00 -08:00
2017-04-27 18:06:12 -07:00
2017-06-05 15:02:35 -07:00
2017-06-05 15:02:35 -07:00
2017-05-19 14:26:42 -07:00
2017-05-19 14:26:42 -07:00