Yanqin Jin
9586dcf1ce
Expose the initial logger creation error ( #10223 )
...
Summary:
https://github.com/facebook/rocksdb/issues/9984 changes the behavior of RocksDB: if logger creation failed during `SanitizeOptions()`,
`DB::Open()` will fail. However, since `SanitizeOptions()` is called in `DBImpl::DBImpl()`, we cannot
directly expose the error to caller without some additional work.
This is a first version proposal which:
- Adds a new member `init_logger_creation_s` to `DBImpl` to store the result of init logger creation
- Checks the error during `DB::Open()` and return it to caller if non-ok
This is not very ideal. We can alternatively move the logger creation logic out of the `SanitizeOptions()`.
Since `SanitizeOptions()` is used in other places, we need to check whether this change breaks anything
in case other callers of `SanitizeOptions()` assumes that a logger should be created.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/10223
Test Plan: make check
Reviewed By: pdillinger
Differential Revision: D37321717
Pulled By: riversand963
fbshipit-source-id: 58042358a86369d606549dd9938933dd47591c4b
2022-06-22 08:26:38 -07:00
..
2022-06-20 20:58:11 -07:00
2022-06-21 11:56:53 -07:00
2022-06-22 08:26:38 -07:00
2022-06-03 20:54:48 -07:00
2022-05-06 13:03:58 -07:00
2021-09-29 04:04:40 -07:00
2022-06-06 18:32:26 -07:00
2022-04-14 11:11:04 -07:00
2022-06-02 20:04:33 -07:00
2022-06-14 14:19:26 -07:00
2022-05-30 12:31:46 -07:00
2022-06-20 20:58:11 -07:00
2022-06-20 20:58:11 -07:00
2022-05-06 13:03:58 -07:00
2022-06-13 11:08:50 -07:00
2022-05-02 10:22:08 -07:00
2022-06-01 10:52:26 -07:00
2022-05-06 13:03:58 -07:00
2022-06-22 08:26:38 -07:00
2022-06-16 15:51:33 -07:00
2022-06-16 21:14:10 -07:00
2022-05-06 13:03:58 -07:00
2022-06-21 11:56:53 -07:00
2022-01-27 13:01:09 -08:00
2021-07-23 08:38:45 -07:00
2022-06-01 11:02:27 -07:00
2022-05-05 13:08:21 -07:00
2022-05-04 10:19:53 -07:00
2020-06-15 10:47:02 -07:00
2022-03-21 12:04:33 -07:00
2021-11-08 11:05:59 -08:00
2022-05-06 13:03:58 -07:00
2022-05-06 13:03:58 -07:00
2022-04-11 10:26:55 -07:00
2022-04-11 10:26:55 -07:00
2022-05-06 13:03:58 -07:00
2022-06-16 23:10:07 -07:00
2022-05-06 13:03:58 -07:00
2022-03-04 11:35:28 -08:00
2022-05-06 13:03:58 -07:00
2022-04-05 12:26:36 -07:00
2021-07-23 08:38:45 -07:00
2022-06-14 14:19:26 -07:00
2022-05-06 13:03:58 -07:00
2022-05-06 13:03:58 -07:00
2022-06-17 16:40:47 -07:00
2022-05-24 12:14:10 -07:00
2022-05-27 07:23:31 -07:00
2022-05-27 05:58:43 -07:00
2021-09-07 13:28:29 -07:00
2022-05-06 13:03:58 -07:00
2021-07-23 08:38:45 -07:00
2022-06-13 11:08:50 -07:00
2022-06-14 13:06:40 -07:00
2022-06-01 18:03:34 -07:00
2022-06-16 23:10:07 -07:00
2022-05-06 13:03:58 -07:00
2022-06-21 11:27:10 -07:00
2022-06-10 08:21:08 -07:00
2022-02-08 12:15:35 -08:00
2022-05-19 18:39:41 -07:00
2022-05-19 18:39:41 -07:00
2021-11-08 11:05:59 -08:00
2022-06-17 16:45:28 -07:00
2021-11-08 11:05:59 -08:00
2022-06-20 18:04:08 -07:00
2022-06-20 18:04:08 -07:00
2022-05-06 13:03:58 -07:00
2022-05-06 13:03:58 -07:00
2022-03-15 14:45:34 -07:00
2022-03-15 14:45:34 -07:00
2022-03-23 19:41:31 -07:00
2021-12-08 14:30:57 -08:00
2022-05-19 11:04:21 -07:00
2022-05-31 08:48:57 -07:00
2022-05-19 11:04:21 -07:00
2022-05-19 11:04:21 -07:00
2022-05-06 13:03:58 -07:00
2021-12-13 09:00:36 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2022-05-05 13:08:21 -07:00
2022-03-30 15:55:31 -07:00
2022-06-20 20:58:11 -07:00
2022-06-06 18:32:26 -07:00
2022-05-18 00:41:41 -07:00
2020-02-20 12:09:57 -08:00
2021-03-19 12:09:47 -07:00
2022-01-12 09:31:12 -08:00
2022-05-06 13:03:58 -07:00
2022-01-21 11:37:46 -08:00
2022-03-11 16:13:23 -08:00
2022-05-19 11:04:21 -07:00
2021-12-16 17:15:13 -08:00
2022-05-19 11:04:21 -07:00
2022-05-06 13:03:58 -07:00
2022-04-13 13:36:30 -07:00
2022-04-14 11:11:04 -07:00
2021-11-16 10:20:50 -08:00
2022-05-06 13:03:58 -07:00
2022-02-17 16:19:31 -08:00
2022-05-24 10:28:57 -07:00
2022-06-08 14:16:43 -07:00
2022-03-09 15:49:53 -08:00
2022-03-09 15:49:53 -08:00
2022-03-09 15:49:53 -08:00
2020-02-20 12:09:57 -08:00
2021-03-19 12:09:47 -07:00
2021-09-29 04:04:40 -07:00
2021-09-07 11:31:59 -07:00
2020-02-20 12:09:57 -08:00
2022-01-12 09:31:12 -08:00
2022-06-20 20:58:11 -07:00
2022-03-31 20:00:52 -07:00
2022-05-05 19:45:32 -07:00
2022-06-16 23:10:07 -07:00
2022-04-13 07:34:01 -07:00
2021-05-10 12:50:25 -07:00
2021-11-19 17:53:47 -08:00
2021-11-19 17:53:47 -08:00
2021-11-19 17:53:47 -08:00
2020-02-20 12:09:57 -08:00
2022-01-04 16:45:49 -08:00
2022-05-06 13:03:58 -07:00
2020-12-23 16:55:53 -08:00
2021-09-29 04:04:40 -07:00
2021-09-29 04:04:40 -07:00
2022-05-06 13:03:58 -07:00
2021-07-23 08:38:45 -07:00
2022-03-12 11:45:56 -08:00
2022-03-12 11:45:56 -08:00
2021-09-07 11:31:59 -07:00
2022-05-06 13:03:58 -07:00
2022-06-10 16:07:03 -07:00
2021-09-10 10:00:26 -07:00
2022-05-06 13:03:58 -07:00
2021-10-06 07:48:31 -07:00
2021-10-06 07:48:31 -07:00
2020-10-28 10:12:58 -07:00
2021-03-25 21:18:08 -07:00
2021-10-06 07:48:31 -07:00
2021-06-18 04:57:27 -07:00
2021-06-18 04:57:27 -07:00
2021-09-10 10:00:26 -07:00
2022-05-24 09:00:06 -07:00
2022-06-20 20:58:11 -07:00
2022-05-17 09:39:22 -07:00
2020-02-20 12:09:57 -08:00
2022-06-10 16:07:03 -07:00
2022-05-19 15:36:27 -07:00
2022-05-20 12:38:21 -07:00
2022-05-19 15:36:27 -07:00
2021-11-18 11:43:44 -08:00
2021-03-25 15:00:45 -07:00
2021-11-19 11:37:06 -08:00
2022-05-24 10:28:57 -07:00
2022-04-14 17:12:16 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2022-05-19 11:04:21 -07:00
2022-06-21 11:56:53 -07:00
2022-06-14 13:06:40 -07:00
2022-06-20 20:58:11 -07:00
2021-06-10 12:55:20 -07:00
2022-05-19 11:04:21 -07:00
2022-06-21 11:56:53 -07:00
2022-06-21 11:56:53 -07:00
2022-06-16 12:12:43 -07:00
2022-06-20 20:58:11 -07:00
2022-06-21 11:56:53 -07:00
2022-06-21 11:56:53 -07:00
2022-06-20 20:58:11 -07:00
2020-12-09 16:02:12 -08:00
2020-12-09 16:02:12 -08:00
2022-05-05 13:08:21 -07:00
2022-06-20 20:58:11 -07:00
2022-06-08 14:16:43 -07:00
2022-06-08 14:16:43 -07:00
2020-02-20 12:09:57 -08:00
2022-06-16 23:10:07 -07:00
2022-05-06 13:03:58 -07:00
2022-06-18 15:12:17 -07:00
2022-06-16 23:10:07 -07:00
2020-02-20 12:09:57 -08:00
2021-03-18 09:47:31 -07:00
2021-03-18 09:47:31 -07:00
2022-05-18 00:41:41 -07:00
2022-06-15 13:43:58 -07:00
2022-06-10 16:07:03 -07:00