Maysam Yabandeh
f0e8216197
WritePrepared: Fix deadlock in WriteRecoverableState ( #5306 )
...
Summary:
The recent improvement in https://github.com/facebook/rocksdb/pull/3661 could cause a deadlock: When writing recoverable state, we also commit its sequence number to commit table, which could result into evicting existing commit entry, which could result into advancing max_evicted_seq_, which would need to get snapshots from database, which requires obtaining db mutex. The patch releases db_mutex before calling the callback in WriteRecoverableState to avoid the potential deadlock. It also improves the stress tests to let the issue be manifested in the tests.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5306
Differential Revision: D15341458
Pulled By: maysamyabandeh
fbshipit-source-id: 05dcbed7e21b789fd1e5fd5ee8eea08077162323
2019-05-15 13:53:54 -07:00
..
2018-07-11 12:28:13 -07:00
2017-07-15 16:11:23 -07:00
2017-10-17 11:13:19 -07:00
2018-04-12 17:59:16 -07:00
2017-10-17 11:13:19 -07:00
2019-04-04 12:12:11 -07:00
2017-07-15 16:11:23 -07:00
2018-02-23 13:57:26 -08:00
2018-04-15 17:26:26 -07:00
2019-03-20 10:42:04 -07:00
2019-02-14 14:41:36 -08:00
2019-04-11 14:28:26 -07:00
2019-04-18 10:55:01 -07:00
2017-07-15 16:11:23 -07:00
2017-07-31 12:12:03 -07:00
2018-09-05 18:13:31 -07:00
2018-07-16 23:43:41 -07:00
2017-10-19 10:57:12 -07:00
2018-08-23 10:12:58 -07:00
2019-05-03 17:30:22 -07:00
2019-02-14 14:41:36 -08:00
2018-06-05 12:58:02 -07:00
2018-06-05 12:58:02 -07:00
2019-04-02 14:52:34 -07:00
2018-07-18 10:43:54 -07:00
2017-11-03 14:42:08 -07:00
2018-12-26 13:59:35 -08:00
2018-12-13 13:18:28 -08:00
2017-07-15 16:11:23 -07:00
2019-04-30 10:59:05 -07:00
2019-04-30 10:59:05 -07:00
2019-04-18 10:55:01 -07:00
2019-04-18 10:55:01 -07:00
2019-04-18 10:55:01 -07:00
2019-04-18 10:55:01 -07:00
2018-06-15 12:42:53 -07:00
2019-04-30 10:59:05 -07:00
2017-08-31 14:16:30 -07:00
2019-02-14 14:41:36 -08:00
2019-01-29 15:50:03 -08:00
2019-01-29 15:50:03 -08:00
2019-04-04 12:12:11 -07:00
2018-08-20 17:43:41 -07:00
2019-01-24 10:34:30 -08:00
2019-01-24 10:34:30 -08:00
2019-02-14 14:41:36 -08:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2019-02-12 19:16:17 -08:00
2019-04-11 14:28:26 -07:00
2019-02-14 14:41:36 -08:00
2019-02-14 14:41:36 -08:00
2019-01-29 17:24:00 -08:00
2019-03-28 15:17:13 -07:00
2019-03-28 15:17:13 -07:00
2019-02-14 14:41:36 -08:00
2018-09-14 13:29:56 -07:00
2018-08-31 12:12:49 -07:00
2017-07-15 16:11:23 -07:00
2017-12-01 10:42:05 -08:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2018-07-13 10:58:06 -07:00
2019-04-08 13:32:06 -07:00
2017-12-01 10:42:05 -08:00
2018-12-17 13:20:51 -08:00
2019-01-03 16:30:12 -08:00
2019-01-03 16:30:12 -08:00
2019-04-08 13:32:06 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2018-11-09 11:19:58 -08:00
2019-02-19 16:56:49 -08:00
2018-10-26 14:30:30 -07:00
2017-07-15 16:11:23 -07:00
2019-03-29 10:08:50 -07:00
2018-07-13 10:58:06 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2019-04-18 10:55:01 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2018-04-12 17:59:16 -07:00
2017-10-04 19:15:01 -07:00
2017-10-04 19:15:01 -07:00
2019-03-29 10:08:50 -07:00
2019-03-29 10:08:50 -07:00
2018-03-05 23:57:12 -08:00
2019-02-14 14:41:36 -08:00
2019-02-14 14:41:36 -08:00
2019-04-04 12:12:11 -07:00
2019-01-29 15:50:03 -08:00
2019-03-26 16:45:31 -07:00
2017-07-15 16:11:23 -07:00
2019-03-01 10:42:09 -08:00
2019-03-12 13:49:52 -07:00
2019-03-12 13:49:52 -07:00
2018-06-13 13:13:18 -07:00
2018-06-13 13:13:18 -07:00
2018-10-19 11:53:00 -07:00
2018-06-04 15:58:46 -07:00
2018-07-13 17:27:39 -07:00
2018-07-13 17:27:39 -07:00
2019-04-10 19:31:18 -07:00
2018-11-13 11:17:25 -08:00
2018-03-07 12:42:12 -08:00
2018-03-05 13:13:41 -08:00
2018-10-09 16:58:25 -07:00
2018-06-04 12:12:48 -07:00
2018-10-05 15:41:17 -07:00
2019-04-19 20:33:04 -07:00
2018-04-24 08:41:51 -07:00
2017-07-15 16:11:23 -07:00
2019-02-21 17:26:01 -08:00
2019-03-19 14:36:51 -07:00
2019-03-19 14:36:51 -07:00
2019-05-15 13:53:54 -07:00
2019-02-11 16:02:37 -08:00
2019-03-27 10:34:27 -07:00
2018-07-13 10:58:06 -07:00
2019-04-18 10:55:01 -07:00
2019-04-18 10:55:01 -07:00
2019-04-18 10:55:01 -07:00