MapleWhiteZZZ and MapleWhiteZZZ
a89971ff66
filer: delete the chunks a failed copy wrote ( #13316 )
...
* filer: delete the chunks a failed copy wrote
A copy through the filer (POST dst?cp.from=src) writes the destination's
chunks first and its entry last. When it ended before the entry was written
(the client gave up, a chunk failed to copy, the entry write failed), the
chunks already on the volume servers stayed there, with no entry to
reference them and nothing to delete them.
The fan-out now waits for the copies it started, starts no further one
after a failure or once the request has ended, and deletes what the
completed ones wrote. A chunk copy that fails deletes the file id it was
assigned, as a failed write can still have stored the needle. A failed
entry write deletes only the chunks the destination does not hold, since
CreateEntry can fail after storing the entry.
#13217 did the same for the S3 copy paths.
* filer: keep the copied chunks when the entry write fails
CreateEntry can fail after it stored the entry: the entry stays when only
its parent folders could not be created. Reading the destination afterwards
does not settle whether the chunks are live, since an entry that was stored
may have been renamed by then, and deleting on a miss would take its data.
So a failed entry write keeps the chunks, as it did before. Only the
failures that come before the entry write delete what the copy wrote.
* filer: fail a copy whose request ended after its last chunk
A request cancelled once every chunk copy had returned still handed the
chunks on, to an entry write that the cancelled context then fails, and
that write keeps them. The end of the request now fails the fan-out
whether or not a copy was left to start, so the chunks are deleted there.
---------
Co-authored-by: MapleWhiteZZZ <18653045+MapleWhiteZZZ@users.noreply.github.com >
2026-12-02 14:10:27 -08:00
..
2025-11-04 13:02:22 -08:00
2026-11-05 10:11:52 -08:00
2026-03-18 13:20:55 -07:00
2026-11-21 10:38:38 -08:00
2026-01-03 22:45:48 -08:00
2026-11-26 08:42:25 -08:00
2026-11-25 13:12:03 -08:00
2026-11-20 13:01:27 -08:00
2026-11-27 18:53:59 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 08:18:28 -08:00
2026-11-29 10:26:52 -08:00
2026-11-29 10:26:52 -08:00
2026-11-28 15:31:06 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 08:18:28 -08:00
2026-11-23 08:45:34 -08:00
2026-11-23 08:45:34 -08:00
2026-11-24 12:30:46 -08:00
2026-11-23 08:45:34 -08:00
2026-12-02 12:04:27 -08:00
2026-11-26 12:31:02 -08:00
2026-12-02 04:22:12 -08:00
2026-11-25 13:05:53 -08:00
2026-12-02 04:22:12 -08:00
2026-11-23 08:45:34 -08:00
2026-11-23 08:45:34 -08:00
2026-11-23 08:45:34 -08:00
2026-11-26 12:31:02 -08:00
2026-11-26 12:31:02 -08:00
2026-11-24 12:30:46 -08:00
2026-11-23 08:45:34 -08:00
2026-12-02 04:22:12 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 12:31:02 -08:00
2026-11-23 08:45:34 -08:00
2026-11-23 08:45:34 -08:00
2026-11-29 12:58:42 -08:00
2026-11-23 08:45:34 -08:00
2026-11-26 12:31:02 -08:00
2026-11-26 08:18:28 -08:00
2026-12-02 04:22:12 -08:00
2026-12-02 04:22:12 -08:00
2026-12-02 04:22:12 -08:00
2026-11-24 12:30:46 -08:00
2026-11-26 12:31:02 -08:00
2026-11-26 12:31:02 -08:00
2026-11-27 18:53:59 -08:00
2026-11-26 12:31:02 -08:00
2026-11-26 08:18:28 -08:00
2026-11-23 08:45:34 -08:00
2026-11-25 12:50:41 -08:00
2026-11-23 08:45:34 -08:00
2026-11-25 12:50:41 -08:00
2026-11-24 14:08:06 -08:00
2026-12-02 04:22:12 -08:00
2026-11-26 08:18:28 -08:00
2026-11-20 00:01:24 -08:00
2026-12-01 13:22:56 -08:00
2026-11-18 19:37:06 -08:00
2026-11-27 18:51:15 -08:00
2026-08-04 11:38:38 -07:00
2026-10-10 23:39:29 +08:00
2026-12-01 15:36:21 -08:00
2026-11-29 10:32:38 -08:00
2026-08-04 11:38:38 -07:00
2026-11-21 10:40:22 -08:00
2026-11-24 20:13:39 -08:00
2026-11-28 15:31:06 -08:00
2026-11-28 15:31:06 -08:00
2026-11-28 15:31:06 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 17:25:55 -08:00
2026-11-20 21:21:00 -08:00
2026-01-07 13:06:08 -08:00
2026-12-02 12:04:27 -08:00
2026-12-02 12:04:27 -08:00
2026-11-29 12:32:36 -08:00
2026-11-29 11:31:30 -08:00
2026-12-01 15:37:35 -08:00
2026-04-21 23:00:11 -07:00
2026-04-21 23:00:11 -07:00
2026-12-01 15:37:35 -08:00
2026-08-05 23:55:20 -07:00
2026-11-29 12:58:42 -08:00
2026-11-29 12:58:42 -08:00
2026-10-28 14:35:39 -07:00
2026-12-01 15:37:35 -08:00
2026-11-11 19:10:58 -08:00
2026-12-01 15:37:35 -08:00
2026-11-22 10:25:17 -08:00
2026-11-23 15:58:12 -08:00
2026-11-22 10:35:57 -08:00
2026-11-26 12:31:02 -08:00
2026-11-27 17:54:48 -08:00
2026-11-22 10:18:25 -08:00
2026-11-22 10:18:25 -08:00
2026-11-29 23:10:49 -08:00
2026-11-27 17:54:48 -08:00
2026-11-28 09:49:46 -08:00
2026-11-21 10:40:22 -08:00
2026-11-27 17:54:48 -08:00
2026-10-05 18:22:16 +08:00
2026-07-27 14:28:29 -07:00
2026-04-21 11:25:09 -07:00
2026-04-21 11:25:09 -07:00
2026-04-21 11:25:09 -07:00
2026-11-27 17:54:48 -08:00
2026-12-02 13:12:20 -08:00
2026-11-15 20:53:41 -08:00
2026-11-20 13:01:27 -08:00
2026-11-27 18:53:59 -08:00
2026-11-19 12:43:34 -08:00
2026-11-19 12:43:34 -08:00
2026-12-02 13:12:20 -08:00
2026-06-14 21:44:10 -07:00
2026-11-24 12:30:46 -08:00
2026-10-12 17:39:34 +08:00
2026-10-25 11:37:06 -07:00
2026-10-21 20:31:42 -07:00
2026-11-23 15:58:12 -08:00
2026-12-02 04:22:12 -08:00
2026-11-20 13:01:27 -08:00
2026-11-19 12:43:34 -08:00
2026-11-10 21:12:49 -08:00
2026-12-02 14:10:27 -08:00
2026-11-20 19:20:23 -08:00
2026-12-02 14:10:27 -08:00
2026-12-01 16:46:59 -08:00
2026-12-01 16:46:59 -08:00
2026-11-20 13:01:27 -08:00
2026-11-20 13:01:27 -08:00
2026-11-20 13:01:27 -08:00
2026-11-20 13:01:27 -08:00
2026-11-20 13:01:27 -08:00
2026-09-04 16:39:36 -07:00
2026-11-20 13:01:27 -08:00
2026-11-05 10:11:52 -08:00
2026-10-24 07:04:41 -07:00
2026-11-27 18:51:15 -08:00
2026-10-12 19:21:54 +08:00
2026-12-01 16:46:59 -08:00
2026-11-20 13:07:18 -08:00
2026-11-24 20:17:26 -08:00
2026-11-26 08:18:28 -08:00
2026-12-01 15:36:21 -08:00
2026-12-01 16:46:59 -08:00
2026-12-01 16:46:59 -08:00
2026-11-25 13:07:45 -08:00
2026-11-25 13:07:45 -08:00
2026-11-26 08:34:47 -08:00
2026-12-01 16:46:59 -08:00
2026-12-01 16:46:59 -08:00
2026-12-01 16:46:59 -08:00
2026-10-06 09:53:40 +08:00
2026-11-17 17:13:45 -08:00
2026-09-29 22:05:42 +08:00
2026-02-20 18:42:00 -08:00
2026-11-24 20:14:20 -08:00
2026-10-10 10:59:00 +08:00
2026-08-26 08:49:25 -07:00
2026-08-10 12:32:45 -07:00
2026-11-19 13:19:46 -08:00
2026-08-07 21:56:15 -07:00
2026-11-20 13:01:27 -08:00
2026-08-25 09:24:51 -07:00
2026-10-26 07:51:33 -07:00
2026-09-04 16:39:24 -07:00
2026-12-02 07:05:13 -08:00
2026-11-29 17:46:29 -08:00
2026-10-26 08:06:15 -07:00
2026-10-08 22:03:31 +08:00
2026-11-29 17:46:29 -08:00
2026-11-20 13:01:27 -08:00
2026-11-26 08:27:35 -08:00
2026-11-26 08:27:35 -08:00
2026-05-21 10:19:59 -07:00
2026-11-26 08:27:35 -08:00
2026-11-20 13:01:27 -08:00
2026-11-03 20:46:58 -08:00
2026-11-19 13:11:40 -08:00
2026-10-24 07:00:45 -07:00
2026-09-07 09:23:56 -07:00
2026-11-24 10:32:18 -08:00
2026-11-26 22:46:28 -08:00
2026-11-26 22:46:28 -08:00
2026-10-19 21:01:31 -07:00
2026-10-25 09:25:39 -07:00
2026-11-27 18:02:55 -08:00
2026-11-17 16:59:40 -08:00
2026-11-26 08:27:35 -08:00
2026-10-25 06:17:42 -07:00
2026-11-26 08:27:35 -08:00
2025-12-19 00:15:39 -08:00
2026-11-26 08:27:35 -08:00
2026-08-26 00:12:56 -07:00
2026-11-30 18:21:23 -08:00
2026-12-02 12:13:16 -08:00
2026-09-02 16:12:46 -07:00
2026-11-03 20:46:58 -08:00
2026-12-02 12:13:16 -08:00
2026-11-30 18:21:23 -08:00
2026-10-24 06:58:16 -07:00
2026-11-27 14:56:18 -08:00
2026-11-29 23:12:46 -08:00
2026-10-12 18:10:41 +08:00
2026-09-07 09:23:56 -07:00
2025-11-26 08:01:19 -08:00
2026-12-02 12:13:16 -08:00
2026-09-28 18:40:11 +08:00
2026-11-29 23:12:46 -08:00
2026-11-18 16:17:04 -08:00
2026-11-29 23:12:46 -08:00
2026-11-06 09:29:42 -08:00
2026-11-29 23:12:46 -08:00
2026-08-21 15:22:22 -07:00
2026-11-29 23:12:46 -08:00
2026-11-29 23:12:46 -08:00
2026-11-24 12:30:46 -08:00
2026-12-02 04:22:12 -08:00
2026-11-24 12:30:46 -08:00
2026-11-24 12:30:46 -08:00
2026-12-02 04:22:12 -08:00
2026-12-02 04:22:12 -08:00
2026-11-24 12:30:46 -08:00
2026-11-24 12:30:46 -08:00
2026-11-24 12:30:46 -08:00
2026-12-02 04:22:12 -08:00
2026-11-26 08:27:35 -08:00
2026-11-12 10:19:05 -08:00
2026-11-28 09:50:53 -08:00
2026-11-20 13:01:27 -08:00
2026-12-01 13:14:33 -08:00
2026-11-26 08:27:35 -08:00
2026-12-01 13:14:33 -08:00
2026-11-05 03:27:45 -08:00
2026-11-27 17:53:58 -08:00
2026-11-28 09:50:53 -08:00
2026-10-30 11:22:40 -07:00
2026-11-18 15:18:29 -08:00
2026-10-29 22:37:31 -07:00
2026-10-30 09:20:55 -07:00
2026-10-30 11:22:40 -07:00
2026-10-03 09:08:19 +08:00
2026-09-18 12:55:47 -07:00
2026-05-31 23:42:33 -07:00
2026-11-28 09:50:53 -08:00
2026-11-22 10:32:05 -08:00
2026-10-29 00:58:30 -07:00
2026-11-06 09:38:15 -08:00
2026-07-10 22:06:36 -07:00
2026-11-22 16:02:01 -08:00
2026-11-18 10:48:21 -08:00
2026-11-22 16:02:01 -08:00
2026-11-27 15:22:00 -08:00
2026-08-28 20:46:59 -07:00
2026-10-02 22:46:36 +08:00
2026-10-02 22:46:36 +08:00
2026-11-26 08:36:36 -08:00
2026-07-10 22:06:36 -07:00
2026-11-28 09:50:53 -08:00
2026-09-03 18:39:45 -07:00
2026-07-15 23:24:04 -07:00
2026-09-24 06:57:44 +08:00
2026-04-22 11:22:21 -07:00
2026-10-03 09:08:19 +08:00
2026-12-01 21:45:41 -08:00
2026-10-29 00:57:37 -07:00
2026-12-01 21:45:41 -08:00
2026-09-12 14:19:18 -07:00
2026-09-08 19:12:30 -07:00
2026-09-12 14:19:18 -07:00
2026-07-25 23:53:29 -07:00
2026-11-19 15:02:25 -08:00
2026-11-19 22:36:44 -08:00
2026-11-19 22:36:44 -08:00
2026-09-14 22:09:08 -07:00
2026-09-14 22:09:08 -07:00
2026-09-14 22:09:08 -07:00
2026-11-11 10:19:06 -08:00
2026-11-18 15:18:29 -08:00
2026-11-18 15:18:29 -08:00
2026-10-21 20:16:02 -07:00
2026-10-16 23:46:36 -07:00
2026-12-02 04:23:39 -08:00
2026-12-01 15:36:21 -08:00
2026-09-08 21:42:56 -07:00
2026-11-16 16:20:15 -08:00
2026-10-31 05:09:14 -07:00
2026-10-31 05:09:14 -07:00
2026-11-20 13:01:27 -08:00
2026-11-26 12:30:33 -08:00
2026-08-09 12:43:31 -07:00
2026-11-26 08:34:47 -08:00
2026-12-01 15:36:21 -08:00
2026-11-26 08:42:25 -08:00
2026-11-26 08:42:25 -08:00
2026-07-15 23:24:04 -07:00
2026-11-27 17:53:58 -08:00
2026-11-27 18:53:59 -08:00
2026-07-30 11:58:14 -07:00
2026-07-30 11:58:14 -07:00
2026-11-24 14:08:06 -08:00
2026-11-24 14:08:06 -08:00
2026-12-02 03:21:01 -08:00
2026-12-01 13:16:48 -08:00
2026-11-30 13:27:33 -08:00
2026-12-01 13:16:48 -08:00
2026-06-11 21:56:16 -07:00
2026-10-18 12:57:10 -07:00