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-05-14 12:40:49 -07:00
2014-05-08 13:50:49 -07:00
2014-05-08 13:50:49 -07:00
2014-04-15 13:39:26 -07:00
2014-04-15 13:39:26 -07:00
2014-05-09 08:41:02 -07:00
2014-05-02 16:24:04 -04:00
2014-05-02 16:24:04 -04:00
2014-06-20 11:14:14 +02:00
2014-04-04 14:03:19 -07:00
2014-05-21 07:54:22 -04:00
2014-07-02 11:40:16 +02:00
2014-03-03 21:11:49 -08:00
2014-01-17 12:46:06 -08:00
2014-01-17 12:46:06 -08:00
2014-03-21 15:32:48 -07:00
2014-05-14 12:13:50 -07:00
2014-05-14 12:13:50 -07:00
2014-04-08 10:58:07 -07:00
2014-04-08 10:58:07 -07:00
2013-12-03 12:42:15 -08:00
2014-04-09 21:17:14 -07:00
2014-04-09 21:17:14 -07:00
2014-04-17 14:29:28 -07:00
2014-04-25 09:50:51 -04:00
2014-05-01 14:09:32 -04:00
2014-05-01 14:09:32 -04:00