Andrew Kryczka
f9d18e22d2
Fix DeleteRange file boundary correctness issue with max_compaction_bytes
...
Summary:
Cockroachdb exposed this bug in #1778 . The bug happens when a compaction's output files are ended due to exceeding max_compaction_bytes. In that case we weren't taking into account the next file's start key when deciding how far to extend the current file's max_key. This caused the non-overlapping key-range invariant to be violated.
Note this was correctly handled for the usual case of cutting compaction output, which is file size exceeding max_output_file_size. I am not sure why these are two separate code paths, but we can consider refactoring it to prevent such errors in the future.
Closes https://github.com/facebook/rocksdb/pull/1784
Differential Revision: D4430235
Pulled By: ajkr
fbshipit-source-id: 80af748
2017-01-18 11:54:22 -08:00
..
2016-07-07 11:35:40 -07:00
2016-05-20 07:42:18 -07:00
2016-02-22 21:32:19 -08:00
2016-11-21 12:24:13 -08:00
2016-11-19 14:24:12 -08:00
2017-01-03 18:39:14 -08:00
2017-01-03 18:39:14 -08:00
2016-11-23 09:24:15 -08:00
2016-11-29 10:54:15 -08:00
2016-11-23 09:24:15 -08:00
2016-10-19 13:37:51 -07:00
2017-01-08 14:24:12 -08:00
2017-01-08 14:24:12 -08:00
2016-12-01 07:09:15 -08:00
2017-01-11 15:09:21 -08:00
2017-01-11 15:09:21 -08:00
2017-01-11 15:09:21 -08:00
2016-08-10 12:37:43 -07:00
2016-09-23 16:34:04 -07:00
2017-01-18 11:54:22 -08:00
2017-01-11 15:09:21 -08:00
2016-12-07 11:54:11 -08:00
2016-11-01 21:09:23 -07:00
2016-12-07 11:54:11 -08:00
2016-12-07 11:54:11 -08:00
2016-12-07 11:54:11 -08:00
2016-09-27 18:20:57 -07:00
2016-02-09 15:12:00 -08:00
2016-04-28 17:50:58 -07:00
2016-11-16 09:39:09 -08:00
2016-08-23 13:53:49 -07:00
2016-11-16 09:39:09 -08:00
2016-12-01 07:09:15 -08:00
2016-11-21 21:24:11 -08:00
2016-12-13 11:54:14 -08:00
2016-12-09 11:54:21 -08:00
2016-07-21 14:32:12 -07:00
2016-10-14 12:25:39 -07:00
2016-09-23 16:34:04 -07:00
2017-01-08 14:24:12 -08:00
2017-01-08 14:24:12 -08:00
2017-01-11 15:09:21 -08:00
2017-01-08 14:24:12 -08:00
2016-09-23 16:34:04 -07:00
2016-09-23 16:34:04 -07:00
2016-11-16 09:39:09 -08:00
2016-11-21 18:09:13 -08:00
2016-10-18 16:07:10 -07:00
2017-01-05 10:39:12 -08:00
2016-11-04 12:09:22 -07:00
2016-12-16 11:24:18 -08:00
2016-02-09 15:12:00 -08:00
2016-11-16 09:39:09 -08:00
2016-12-16 11:09:16 -08:00
2016-12-05 14:24:16 -08:00
2016-11-22 14:09:13 -08:00
2017-01-18 11:54:22 -08:00
2016-12-21 17:54:21 -08:00
2016-07-19 15:46:20 -07:00
2016-11-16 09:39:09 -08:00
2016-12-19 14:09:12 -08:00
2017-01-17 13:54:20 -08:00
2017-01-03 17:54:12 -08:00
2017-01-09 15:54:12 -08:00
2016-10-20 15:43:00 -07:00
2016-11-10 11:09:22 -08:00
2016-04-25 23:02:14 -07:00
2016-12-01 07:09:15 -08:00
2016-12-19 16:54:12 -08:00
2016-07-05 11:57:14 -07:00
2017-01-11 10:54:37 -08:00
2016-04-29 11:35:00 -07:00
2016-02-09 15:12:00 -08:00
2016-12-28 19:09:16 -08:00
2016-12-06 14:09:17 -08:00
2017-01-03 18:09:20 -08:00
2016-12-01 10:09:22 -08:00
2016-02-09 15:12:00 -08:00
2016-12-16 11:24:18 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-09-23 16:34:04 -07:00
2016-09-23 16:34:04 -07:00
2016-11-14 17:39:13 -08:00
2016-12-09 10:39:12 -08:00
2016-09-23 16:34:04 -07:00
2016-07-08 17:50:51 -07:00
2016-02-09 15:12:00 -08:00
2016-12-22 13:09:19 -08:00
2016-11-15 17:24:28 -08:00
2016-09-27 18:20:57 -07:00
2016-11-22 14:09:13 -08:00
2016-11-22 14:09:13 -08:00
2016-12-28 12:24:16 -08:00
2016-12-28 12:24:16 -08:00
2016-10-13 08:48:40 -07:00
2016-12-13 18:39:14 -08:00
2016-02-09 15:12:00 -08:00
2016-07-08 17:50:51 -07:00
2016-05-22 22:00:15 -07:00
2016-05-22 22:00:15 -07:00
2016-02-09 15:12:00 -08:00
2016-07-21 16:29:06 -07:00
2016-09-27 18:20:57 -07:00
2016-09-27 18:20:57 -07:00
2016-02-09 15:12:00 -08:00
2016-07-13 19:33:57 -07:00
2016-07-05 18:11:25 -07:00
2016-11-03 18:54:20 -07:00
2017-01-08 14:24:12 -08:00
2017-01-08 14:24:12 -08:00
2017-01-08 14:24:12 -08:00
2017-01-08 14:24:12 -08:00
2016-07-05 18:11:25 -07:00
2016-07-25 15:31:41 -07:00
2016-10-18 12:04:56 -07:00
2017-01-11 15:09:21 -08:00
2017-01-11 15:09:21 -08:00
2016-07-20 09:49:03 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-04-26 14:22:07 -07:00
2016-12-29 15:54:19 -08:00
2016-11-17 11:09:13 -08:00
2016-11-16 09:39:09 -08:00
2017-01-05 10:39:12 -08:00
2017-01-05 10:39:12 -08:00
2017-01-05 10:39:12 -08:00
2016-06-24 16:29:43 -07:00
2016-11-19 14:24:12 -08:00
2016-09-27 18:20:57 -07:00
2016-09-27 18:20:57 -07:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00
2016-11-28 22:54:13 -08:00
2016-11-21 21:24:11 -08:00
2016-10-21 11:31:42 -07:00
2016-05-19 14:24:48 -07:00
2016-05-19 14:24:48 -07:00
2016-09-23 16:34:04 -07:00
2016-09-23 16:34:04 -07:00
2016-10-07 17:21:45 -07:00
2016-12-16 11:24:18 -08:00
2016-07-20 11:23:31 -07:00
2016-02-09 15:12:00 -08:00
2016-07-12 14:15:32 -07:00
2016-07-13 15:36:22 -07:00
2016-10-07 17:21:45 -07:00
2017-01-08 14:24:12 -08:00
2017-01-08 14:24:12 -08:00
2016-09-23 16:34:04 -07:00
2016-09-23 16:34:04 -07:00
2016-09-23 16:34:04 -07:00
2016-08-16 08:16:04 -07:00
2016-10-07 11:32:10 -07:00
2016-11-21 12:24:13 -08:00
2016-11-15 15:24:16 -08:00
2016-12-16 11:24:18 -08:00
2016-02-09 15:12:00 -08:00
2016-11-23 09:24:15 -08:00
2016-02-09 15:12:00 -08:00
2016-11-23 09:24:15 -08:00
2017-01-17 11:24:28 -08:00
2016-11-21 18:09:13 -08:00
2016-02-09 15:12:00 -08:00
2016-02-09 15:12:00 -08:00