Yueh-Hsuan Chiang
d4d338de33
Add timeout_hint_us to WriteOptions and introduce Status::TimeOut.
...
Summary:
This diff adds timeout_hint_us to WriteOptions. If it's non-zero, then
1) writes associated with this options MAY be aborted when it has been
waiting for longer than the specified time. If an abortion happens,
associated writes will return Status::TimeOut.
2) the stall time of the associated write caused by flush or compaction
will be limited by timeout_hint_us.
The default value of timeout_hint_us is 0 (i.e., OFF.)
The statistics of timeout writes will be recorded in WRITE_TIMEDOUT.
Test Plan:
export ROCKSDB_TESTS=WriteTimeoutAndDelayTest
make db_test
./db_test
Reviewers: igor, ljin, haobo, sdong
Reviewed By: sdong
Subscribers: dhruba, leveldb
Differential Revision: https://reviews.facebook.net/D18837
2014-07-03 15:47:02 -07:00
..
2014-07-02 21:14:44 -07:00
2014-06-16 16:10:52 -07:00
2014-06-30 15:54:31 -07:00
2014-06-19 16:31:24 +12:00
2014-06-20 10:23:02 +02:00
2014-07-02 21:14:44 -07:00
2014-06-26 16:45:27 -07:00
2014-07-02 21:14:44 -07:00
2014-05-21 11:43:35 -07:00
2014-07-02 21:14:44 -07:00
2014-07-02 21:14:44 -07:00
2014-04-24 14:56:41 -04:00
2014-06-24 15:29:28 -06:00
2014-07-02 21:14:44 -07:00
2014-05-21 11:43:35 -07:00
2014-06-20 10:23:02 +02:00
2014-02-12 13:47:09 -08:00
2014-07-03 15:47:02 -07:00
2014-07-03 15:47:02 -07:00
2014-06-03 12:28:58 -07:00
2014-06-02 17:44:57 -07:00
2014-04-15 13:39:26 -07:00
2014-07-03 15:47:02 -07:00
2013-10-16 17:48:41 -07:00
2014-04-08 10:58:07 -07:00
2014-07-01 17:14:15 -07:00
2013-11-15 16:30:23 -08:00
2014-04-30 09:03:24 -07:00
2014-04-21 09:10:12 -07:00
2014-04-21 11:08:30 -07:00
2014-07-02 21:14:44 -07:00
2014-07-02 21:14:44 -07:00
2014-07-02 21:14:44 -07:00
2014-06-16 16:10:52 -07:00
2014-06-03 12:28:58 -07:00
2014-04-22 22:13:21 -07:00
2014-04-22 22:13:21 -07:00
2014-07-02 21:14:44 -07:00
2014-01-02 16:32:31 -08:00
2014-02-28 13:19:47 -08:00
2014-01-27 14:49:10 -08:00
2014-03-14 22:44:35 +00:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2014-07-02 21:14:44 -07:00
2014-07-02 21:14:44 -07:00
2014-06-30 15:54:31 -07:00
2014-06-02 17:44:57 -07:00
2014-03-24 17:57:13 -07:00
2014-03-27 16:15:25 -07:00
2014-03-24 20:47:53 -07:00
2014-03-26 18:11:41 -07:00
2014-04-28 23:46:24 -04:00
2014-03-14 13:02:20 -07:00
2014-07-01 17:14:15 -07:00
2014-07-01 17:14:15 -07:00
2014-07-02 21:14:44 -07:00
2014-06-20 10:23:02 +02:00
2014-01-30 22:10:10 -08:00
2014-03-10 12:56:46 -07:00
2013-10-16 17:48:41 -07:00
2014-07-02 21:14:44 -07:00
2014-07-02 21:14:44 -07:00
2014-05-13 12:30:55 -07:00
2013-12-05 16:34:16 -08:00
2014-05-13 12:30:55 -07:00
2014-04-25 12:21:34 -07:00
2014-04-25 12:21:34 -07:00
2014-05-12 17:50:21 -07:00
2014-04-15 13:39:26 -07:00
2014-07-02 21:14:44 -07:00
2014-07-02 21:14:44 -07:00
2014-07-02 21:14:44 -07:00
2014-07-02 21:14:44 -07:00
2014-07-03 23:03:24 +02:00
2014-07-02 21:14:44 -07:00
2014-04-22 11:27:33 -07:00
2014-04-25 12:21:34 -07:00
2014-04-22 11:27:33 -07:00