8760e2778b
worker: dir_usage takes off what a TTL expires ( #13369 )
...
* worker: dir_usage takes off what a TTL expires
A plain TTL removes an expired row without an event, so a record kept
counting it until its bucket was seeded again. An entry's attributes say
when listings start leaving it out (Entry.ExpiresAt, which listingExpired
now uses), so a record keeps what each directory has still to expire,
grouped by the step it expires in, and each run takes off what came off
by its position. A step is an hour, or for a TTL of 200 hours or more the
largest power of two hours up to 1% of it, so a record stays bounded.
An event counts an entry only if the record has not taken it off yet, so
an S3 expiry, which logs a delete, comes off once. Record version 2 seeds
the records made before again.
Part of #13257 .
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* dir_usage: decide a seeded directory's share after what expired
The seed took off what had expired by its position only after the final
share check, so a directory the walk kept could be dropped against a
total that still counted those entries. Take them off first, and hand
what a dropped directory has still to expire to the directory above.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
* dir_usage: drop a seeded directory below its share with dropTracked
A directory below its share has none above its share below it, so
dropping it with what is below, its entries staying counted above, is
what untrack did.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com >
2026-12-03 23:40:58 -08:00
..
2026-12-02 12:03:18 -08:00
2026-12-02 04:20:06 -08:00
2026-11-29 23:10:49 -08:00
2026-11-29 23:10:49 -08:00
2026-12-03 23:40:58 -08:00
2026-12-03 10:32:34 -08:00
2026-10-26 07:51:33 -07:00
2026-11-29 23:10:49 -08:00
2026-11-29 23:10:49 -08:00
2026-12-03 01:15:42 -08:00
2026-11-29 23:10:49 -08:00
2026-11-29 23:10:49 -08:00
2026-11-30 11:50:00 -08:00
2026-11-24 20:17:26 -08:00
2026-12-02 04:20:06 -08:00
2026-12-02 03:45:44 -08:00
2026-12-02 00:13:02 -08:00
2026-11-29 12:58:42 -08:00
2026-12-02 12:03:18 -08:00
2026-12-02 03:46:57 -08:00
2026-12-02 12:13:00 -08:00
2026-11-29 23:10:49 -08:00
2026-11-29 23:10:49 -08:00
2026-11-29 23:10:49 -08:00
2026-09-14 16:16:35 -07:00
2026-07-24 10:26:38 -07:00
2026-12-02 04:20:06 -08:00
2026-12-02 03:45:44 -08:00
2026-12-02 12:03:18 -08:00
2026-11-29 23:10:49 -08:00
2026-12-02 04:07:00 -08:00
2026-12-03 23:40:58 -08:00
2026-11-29 23:10:49 -08:00
2026-01-07 13:06:08 -08:00
2026-03-23 18:35:15 -07:00
2026-05-19 10:22:17 -07:00
2026-08-07 12:03:18 -07:00
2026-08-07 12:03:18 -07:00
2026-05-19 10:22:17 -07:00
2026-08-05 23:55:20 -07:00
2026-12-03 23:40:58 -08:00
2026-11-30 15:43:10 -08:00
2026-09-13 18:34:09 -07:00
2026-11-30 15:43:10 -08:00
2026-10-08 22:04:06 +08:00
2026-10-08 22:04:06 +08:00
2026-09-12 20:06:25 -07:00
2026-11-27 18:51:15 -08:00
2026-11-27 18:51:15 -08:00
2026-11-27 18:53:35 -08:00
2026-11-27 18:53:35 -08:00
2026-11-27 18:49:20 -08:00
2026-11-27 18:49:20 -08:00
2026-12-01 14:15:37 -08:00
2026-01-07 13:06:08 -08:00
2026-09-08 10:50:41 -07:00
2026-11-26 17:25:55 -08:00
2026-10-10 23:39:29 +08:00
2026-12-01 12:00:31 -08:00
2026-11-30 13:24:21 -08:00
2026-11-24 12:29:25 -08:00
2026-11-30 13:24:21 -08:00
2026-11-29 10:32:38 -08:00
2026-12-01 12:00:31 -08:00
2026-01-16 19:48:09 -08:00
2026-11-24 14:08:06 -08:00
2026-11-30 13:09:23 -08:00
2026-11-29 10:01:16 -08:00
2026-10-26 07:51:33 -07:00
2026-12-03 10:34:03 -08:00
2026-11-30 11:50:00 -08:00
2026-12-03 10:34:03 -08:00
2026-12-01 13:14:33 -08:00
2026-12-02 12:16:02 -08:00
2026-12-02 12:16:02 -08:00
2026-12-01 13:14:33 -08:00
2026-12-01 13:14:33 -08:00
2026-11-28 17:20:03 -08:00
2026-11-28 17:20:03 -08:00
2026-11-19 22:14:01 -08:00
2026-11-27 18:51:15 -08:00
2026-11-29 23:10:49 -08:00
2026-11-20 21:21:00 -08:00
2026-11-29 23:10:49 -08:00
2022-07-29 00:17:28 -07:00
2026-12-02 12:04:04 -08:00
2026-10-26 13:24:48 -07:00
2026-10-03 09:13:59 +08:00
2026-10-25 11:37:06 -07:00
2026-12-03 01:15:42 -08:00
2026-12-01 15:37:35 -08:00
2026-12-02 12:04:27 -08:00
2026-12-02 12:04:27 -08:00
2026-11-17 16:54:54 -08:00
2026-11-17 16:54:54 -08:00
2026-11-29 10:01:16 -08:00
2026-11-06 13:19:09 -08:00
2026-06-24 10:47:11 -07:00
2026-11-29 10:01:16 -08:00
2026-12-01 15:37:35 -08:00
2026-11-29 17:46:29 -08:00
2026-08-02 00:06:22 -07:00
2026-11-29 17:46:29 -08:00
2026-08-02 00:06:22 -07:00
2026-11-29 17:46:29 -08:00
2026-11-15 20:53:41 -08:00
2026-07-24 17:59:20 -07:00
2026-12-01 15:37:35 -08:00
2026-11-29 23:10:49 -08:00
2026-11-17 16:54:54 -08:00
2026-10-28 14:35:39 -07:00
2026-09-29 22:05:42 +08:00
2026-09-29 22:05:42 +08:00
2026-11-06 13:28:47 -08:00
2026-11-06 13:28:47 -08:00
2026-11-02 10:28:48 -08:00
2026-11-02 10:28:48 -08:00
2026-11-29 12:32:36 -08:00
2026-11-29 12:32:36 -08:00
2026-10-06 09:51:02 +08:00
2026-11-30 13:09:23 -08:00
2026-11-29 17:45:49 -08:00
2026-12-03 23:40:58 -08:00
2026-11-23 15:58:12 -08:00
2026-12-02 12:03:18 -08:00
2026-11-29 23:10:49 -08:00
2026-11-29 23:10:49 -08:00
2026-12-02 12:14:38 -08:00
2026-12-02 23:31:01 -08:00
2026-12-02 23:31:01 -08:00
2026-12-02 12:03:18 -08:00
2026-11-25 13:13:07 -08:00
2026-11-25 13:13:07 -08:00
2026-11-26 08:18:28 -08:00
2026-11-26 08:18:28 -08:00
2026-01-07 13:06:08 -08:00
2023-04-13 22:32:45 -07:00
2026-12-01 22:48:04 -08:00
2026-09-04 23:12:27 -07:00
2026-09-04 23:12:27 -07:00
2026-11-24 20:17:26 -08:00
2026-11-20 21:21:00 -08:00
2026-11-18 11:00:15 -08:00
2026-11-29 17:46:29 -08:00
2026-11-24 20:13:39 -08:00
2026-11-29 17:46:29 -08:00
2026-11-29 10:01:16 -08:00
2026-10-25 11:37:06 -07:00
2026-10-25 11:37:06 -07:00
2026-11-20 21:21:00 -08:00
2026-11-29 17:46:29 -08:00
2026-10-26 13:24:48 -07:00
2026-03-07 09:19:40 -08:00
2026-04-18 20:03:23 -07:00
2026-04-18 20:03:23 -07:00
2026-06-10 13:08:34 -07:00
2026-11-24 15:52:56 -08:00
2026-11-24 15:52:56 -08:00
2026-07-25 11:20:41 -07:00
2026-07-15 19:20:00 -07:00
2026-07-15 19:20:00 -07:00
2026-10-03 21:00:51 +08:00
2026-11-21 10:38:38 -08:00
2026-10-12 17:41:01 +08:00
2026-12-03 23:30:23 -08:00
2026-11-25 13:12:03 -08:00
2026-12-03 23:30:23 -08:00
2026-12-02 03:52:46 -08:00
2026-12-02 03:52:46 -08:00
2026-11-23 13:29:07 -08:00
2026-11-22 23:07:14 -08:00
2026-12-03 23:30:23 -08:00
2026-10-03 15:01:04 +08:00
2026-10-03 15:01:04 +08:00
2026-11-27 18:53:59 -08:00
2026-08-12 23:00:10 -07:00
2026-11-27 18:53:59 -08:00
2026-10-29 00:57:37 -07:00
2026-11-27 18:53:59 -08:00
2026-12-01 10:56:25 -08:00
2026-12-01 10:56:25 -08:00
2026-04-10 17:31:14 -07:00
2026-10-30 08:58:48 -07:00
2026-10-24 07:03:47 -07:00
2026-09-04 16:39:36 -07:00
2026-09-13 18:34:09 -07:00
2026-04-03 19:57:30 -07:00
2026-09-03 11:51:48 -07:00
2026-09-11 19:44:30 -07:00
2026-10-27 08:21:32 -07:00
2026-12-01 22:48:04 -08:00
2024-11-04 12:08:25 -08:00
2026-10-17 11:43:55 -07:00
2026-10-17 11:43:55 -07:00