Chris Lu
faa7be7790
storage: keep EC shards when the .dat beside them is not their encode source
...
Startup validation compared the local shards with the full encode of
whatever .dat sat beside them and deleted the shards when they came out
smaller, taking that as an interrupted local encode. A .dat that is not
the encode source but grew past it (a regular replica that kept taking
writes) therefore made the server delete healthy shards and load the
.dat in their place.
The .vif records the size of the .dat the encode read. When the shards
are exactly the full encode of that size and the .dat beside them has a
different size, the .dat is not their source: keep the shards and leave
the .dat unloaded and untouched. Shards that are not the recorded
encode's full size, a .dat of the recorded size, and a .vif without a
recorded size keep the existing rule, so an interrupted encode is still
reclaimed, including a re-encode whose .vif is still the previous
encode's (the encode writes the .vif after the shards).
2026-12-05 23:45:47 -08:00
..
2026-11-30 12:53:24 -08:00
2026-12-01 11:06:18 -08:00
2026-06-30 02:01:14 -07:00
2026-12-04 10:34:31 -08:00
2026-09-24 06:57:44 +08:00
2026-10-21 20:07:52 -07:00
2026-05-21 09:42:07 -07:00
2026-08-27 10:01:05 -07:00
2026-12-02 12:48:05 -08:00
2026-11-22 00:00:28 -08:00
2026-08-27 22:25:15 -07:00
2026-08-27 22:25:15 -07:00
2026-10-23 18:33:51 -07:00
2026-04-27 16:01:10 -07:00
2026-11-16 16:38:17 -08:00
2026-12-05 23:45:47 -08:00
2026-10-26 08:03:25 -07:00
2026-12-01 00:17:29 -08:00
2026-10-30 09:20:55 -07:00
2026-09-03 08:43:10 -07:00
2026-12-03 23:31:58 -08:00
2026-12-05 23:45:47 -08:00
2026-09-08 21:42:56 -07:00
2026-09-08 21:42:56 -07:00
2026-09-08 21:42:56 -07:00
2026-09-07 18:40:37 -07:00
2026-08-31 21:41:50 -07:00
2026-12-04 10:24:52 -08:00
2026-12-04 10:24:52 -08:00
2026-10-29 22:37:31 -07:00
2026-10-10 22:31:46 +08:00
2026-10-29 22:37:31 -07:00
2026-11-03 08:05:45 -08:00
2026-11-03 08:05:45 -08:00
2026-10-29 22:37:31 -07:00
2026-10-16 19:45:17 -07:00
2026-11-18 15:18:29 -08:00
2026-11-18 15:51:13 -08:00
2026-10-21 20:18:56 -07:00
2026-09-09 12:55:47 -07:00
2026-12-03 23:31:58 -08:00
2026-11-18 15:18:29 -08:00
2026-06-02 09:02:05 -07:00
2026-11-18 15:18:29 -08:00
2026-06-02 09:02:05 -07:00
2026-11-22 22:18:40 -08:00
2026-11-27 17:53:58 -08:00
2026-11-04 10:43:04 -08:00
2026-06-12 23:51:29 -07:00
2026-11-04 09:41:21 -08:00
2026-10-02 22:46:36 +08:00
2026-10-03 09:08:19 +08:00
2026-11-22 13:09:11 -08:00
2026-11-16 16:38:17 -08:00
2026-11-18 10:48:21 -08:00
2026-06-02 09:02:05 -07:00
2026-08-12 20:18:39 -07:00
2026-06-02 09:02:05 -07:00
2026-06-11 20:26:20 -07:00
2026-11-22 13:09:11 -08:00
2026-10-29 00:58:30 -07:00
2026-11-18 10:48:21 -08:00
2026-08-28 15:55:12 -07:00
2026-11-04 08:30:41 -08:00
2026-11-22 22:18:40 -08:00
2026-11-18 10:48:21 -08:00
2026-11-18 10:48:21 -08:00
2026-01-23 16:38:36 -08:00
2026-08-28 20:46:59 -07:00
2026-11-22 13:09:11 -08:00
2026-11-22 16:02:01 -08:00
2026-11-27 17:53:58 -08:00
2026-10-26 08:03:25 -07:00
2026-08-21 22:33:01 -07:00
2026-09-03 23:50:12 -07:00
2025-10-20 16:11:29 -07:00
2026-08-21 13:04:56 -07:00
2026-12-01 13:14:33 -08:00
2026-06-02 09:02:05 -07:00
2026-10-21 15:11:06 -07:00
2026-09-09 23:33:05 -07:00
2026-04-03 16:04:27 -07:00
2026-08-18 17:17:50 -07:00
2026-10-03 08:31:56 +08:00
2026-10-03 08:31:56 +08:00
2026-12-02 04:23:39 -08:00
2026-12-02 04:23:39 -08:00
2026-10-31 13:28:32 -07:00
2026-10-31 13:28:32 -07:00
2026-12-01 13:14:33 -08:00
2026-10-19 17:01:19 -07:00
2026-10-26 09:28:49 -07:00
2026-10-26 08:03:25 -07:00
2026-10-26 08:03:25 -07:00
2026-09-26 15:53:39 +08:00
2026-11-20 20:37:19 -08:00
2026-11-19 15:02:25 -08:00
2026-11-19 15:02:25 -08:00
2026-10-29 22:37:31 -07:00
2026-11-19 15:02:25 -08:00
2026-12-01 12:03:04 -08:00
2026-10-20 23:40:51 -07:00
2026-10-20 13:03:00 -07:00
2026-10-20 23:40:51 -07:00
2026-09-26 15:53:39 +08:00
2026-11-18 15:18:29 -08:00
2026-10-26 09:28:49 -07:00
2026-11-19 15:27:15 -08:00
2026-07-28 16:48:30 -07:00
2026-08-11 16:36:36 -07:00
2026-08-09 12:43:31 -07:00
2026-08-09 09:41:50 -07:00
2026-08-10 00:40:29 -07:00
2026-09-07 09:23:56 -07:00
2026-08-13 21:38:22 -07:00
2026-09-07 18:40:37 -07:00
2026-10-06 14:24:42 +08:00
2026-11-07 10:53:07 -08:00
2026-10-21 14:01:10 -07:00
2026-11-18 15:18:29 -08:00
2026-11-06 09:34:20 -08:00
2026-09-24 06:57:44 +08:00
2026-11-18 15:18:29 -08:00
2026-12-04 10:34:31 -08:00
2026-10-21 14:00:33 -07:00
2026-11-01 18:35:37 -08:00
2026-09-07 09:23:56 -07:00
2026-07-30 17:03:38 -07:00
2026-11-01 18:35:37 -08:00
2026-10-21 20:16:02 -07:00
2026-11-11 10:19:06 -08:00
2026-11-18 15:18:29 -08:00
2026-08-27 22:25:15 -07:00
2026-11-11 10:19:06 -08:00
2026-10-08 22:58:44 +08:00
2026-09-21 00:59:35 -07:00
2026-11-19 15:06:05 -08:00
2026-11-18 15:18:29 -08:00
2026-12-03 23:31:58 -08:00
2026-12-02 04:23:39 -08:00
2026-12-03 23:31:58 -08:00
2026-11-18 15:18:29 -08:00
2026-11-19 15:27:15 -08:00
2026-12-03 23:31:58 -08:00
2026-12-03 23:31:58 -08:00