Yanqin Jin
f235f4b0a3
Fix a bug of secondary instance sequence going backward ( #8653 )
...
Summary:
Recent refactor of `ReactiveVersionSet::ReadAndApply()` uses
`ManifestTailer` whose `Iterate()` method can cause the db's
`last_sequence_` to go backward. Consequently, read requests can see
out-dated data. For example, latest changes to the primary will not be
seen on the secondary even after a `TryCatchUpWithPrimary()` if no new
write batches are read from the WALs and no new MANIFEST entries are
read from the MANIFEST.
Fix the bug so that `VersionEditHandler::CheckIterationResult` will
never decrease `last_sequence_`, `last_allocated_sequence_` and
`last_published_sequence_`.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/8653
Test Plan: make check
Reviewed By: jay-zhuang
Differential Revision: D30272084
Pulled By: riversand963
fbshipit-source-id: c6a49c534b2509b93ef62d8936ed0acd5b860eaa
2021-08-24 18:18:36 -07:00
..
2021-08-17 17:22:31 -07:00
2021-08-23 16:27:38 -07:00
2021-08-24 15:40:56 -07:00
2021-06-16 16:51:38 -07:00
2021-06-16 16:51:38 -07:00
2021-07-02 05:23:02 -07:00
2021-06-18 04:57:27 -07:00
2021-08-20 18:00:16 -07:00
2021-08-20 18:00:16 -07:00
2021-06-15 03:43:48 -07:00
2021-08-02 18:12:11 -07:00
2021-08-02 18:12:11 -07:00
2021-03-29 17:10:42 -07:00
2020-10-28 23:22:27 -07:00
2021-05-05 14:00:17 -07:00
2021-06-15 03:43:48 -07:00
2021-02-06 22:34:30 -08:00
2021-08-16 20:37:20 -07:00
2021-08-20 20:40:48 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-08-09 12:51:14 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-07-29 11:51:08 -07:00
2021-08-18 17:40:01 -07:00
2021-07-30 12:16:44 -07:00
2020-06-15 10:47:02 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-05-05 14:00:17 -07:00
2021-06-16 16:51:38 -07:00
2021-06-16 16:51:38 -07:00
2021-06-16 16:51:38 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-08-10 11:10:07 -07:00
2020-12-09 21:21:16 -08:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-07-27 21:32:11 -07:00
2021-08-24 18:18:36 -07:00
2021-08-20 11:41:14 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-08-20 15:35:56 -07:00
2021-07-16 07:58:51 -07:00
2021-08-16 08:10:32 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-07-07 11:14:05 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2020-10-28 23:22:27 -07:00
2020-12-02 13:00:53 -08:00
2021-03-25 21:18:08 -07:00
2021-07-23 08:38:45 -07:00
2021-07-23 08:38:45 -07:00
2021-07-29 11:51:08 -07:00
2021-03-25 21:18:08 -07:00
2021-08-20 20:40:48 -07:00
2020-08-25 10:46:11 -07:00
2020-02-20 12:09:57 -08:00
2021-07-23 08:38:45 -07:00
2021-05-18 19:33:55 -07:00
2021-03-15 04:34:11 -07:00
2021-07-23 08:38:45 -07:00
2020-12-22 23:45:58 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-10-28 23:22:27 -07:00
2021-08-03 13:31:10 -07:00
2021-08-18 17:40:01 -07:00
2021-08-18 17:40:01 -07:00
2020-02-20 12:09:57 -08:00
2021-03-19 12:09:47 -07:00
2020-02-20 12:09:57 -08:00
2021-03-25 21:18:08 -07:00
2020-04-15 17:40:44 -07:00
2021-01-25 22:09:11 -08:00
2021-03-15 04:34:11 -07:00
2021-07-23 08:38:45 -07:00
2021-08-24 17:46:14 -07:00
2021-08-15 14:17:45 -07:00
2021-08-23 23:09:17 -07:00
2021-01-29 12:18:58 -08:00
2021-08-03 13:31:10 -07:00
2020-02-20 12:09:57 -08:00
2020-11-30 18:11:38 -08:00
2020-08-26 10:39:20 -07:00
2021-01-04 16:01:01 -08:00
2021-06-25 00:47:17 -07:00
2021-03-19 12:09:47 -07:00
2020-02-20 12:09:57 -08:00
2021-03-19 12:09:47 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-12-22 23:45:58 -08:00
2021-08-03 13:31:10 -07:00
2021-08-13 14:35:41 -07:00
2021-08-13 14:35:41 -07:00
2021-07-22 18:29:13 -07:00
2021-08-10 18:09:03 -07:00
2021-05-10 12:50:25 -07:00
2020-02-20 12:09:57 -08:00
2021-06-24 18:11:30 -07:00
2021-06-24 18:11:30 -07:00
2020-02-20 12:09:57 -08:00
2021-01-21 13:13:02 -08:00
2021-08-05 18:36:16 -07:00
2020-12-23 16:55:53 -08:00
2020-11-10 23:42:13 -08:00
2021-05-19 21:41:31 -07:00
2021-03-15 04:34:11 -07:00
2021-07-23 08:38:45 -07:00
2021-03-15 04:34:11 -07:00
2021-01-25 22:09:11 -08:00
2020-02-20 12:09:57 -08:00
2021-05-05 14:00:17 -07:00
2020-02-20 12:09:57 -08:00
2021-03-15 04:34:11 -07:00
2021-03-15 04:34:11 -07:00
2020-02-20 12:09:57 -08:00
2020-10-28 10:12:58 -07:00
2021-03-25 21:18:08 -07:00
2020-02-20 12:09:57 -08:00
2021-06-18 04:57:27 -07:00
2021-06-18 04:57:27 -07:00
2020-08-14 19:20:58 -07:00
2021-07-28 16:44:14 -07:00
2021-08-18 11:33:03 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2021-03-25 21:18:08 -07:00
2021-07-27 21:49:14 -07:00
2021-07-27 21:49:14 -07:00
2021-05-17 18:28:39 -07:00
2021-03-25 15:00:45 -07:00
2021-07-06 10:14:32 -07:00
2020-12-22 23:45:58 -08:00
2020-08-12 17:31:23 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2021-06-22 09:49:44 -07:00
2021-04-19 11:56:14 -07:00
2021-04-19 11:56:14 -07:00
2021-08-24 18:18:36 -07:00
2021-06-10 12:55:20 -07:00
2021-01-19 19:27:53 -08:00
2021-05-17 15:15:23 -07:00
2021-05-17 15:15:23 -07:00
2021-06-22 09:49:44 -07:00
2021-08-09 12:51:14 -07:00
2021-07-22 18:29:13 -07:00
2020-12-09 16:02:12 -08:00
2020-12-09 16:02:12 -08:00
2020-12-09 16:02:12 -08:00
2021-06-10 11:02:43 -07:00
2021-07-30 12:16:44 -07:00
2021-07-30 12:16:44 -07:00
2020-02-20 12:09:57 -08:00
2021-07-30 12:07:49 -07:00
2021-05-05 14:00:17 -07:00
2021-07-30 12:07:49 -07:00
2021-07-07 11:14:05 -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
2021-03-18 09:47:31 -07:00
2021-04-21 13:54:02 -07:00
2021-06-18 17:14:51 -07:00