Dmitriy Kovalenko
527c5deb74
Close arg0 lock files before removing temporary directories ( #54739 )
...
## Why
Removing a directory while its lock file is open can leave `.nfs*` entries on NFS and prevent cleanup.
## What changed
- Drop the `Arg0PathEntryGuard` lock file before its temporary directory.
- On Unix, rename stale helper directories while locked, then close the lock before deleting them. This prevents initializers from publishing at the old path during cleanup.
## Testing
Extend the guard lifetime test to all platforms and assert that its directory is removed after main returns. Strengthen the janitor test to check that cleanup leaves the temporary root empty.
GitOrigin-RevId: 2524afcc63ed7769a7d16b622c1d447918f9478b
2026-10-16 23:56:33 +00:00
..
2026-10-12 13:39:54 +00:00
2026-10-14 07:13:22 +00:00
2026-10-09 13:15:39 +00:00
2026-10-15 21:30:56 +00:00
2026-09-30 00:51:39 +00:00
2026-10-16 19:26:46 +00:00
2026-10-15 21:35:40 +00:00
2026-10-15 20:00:15 +00:00
2026-10-16 19:26:46 +00:00
2026-10-08 20:11:43 +00:00
2026-10-16 16:07:25 +00:00
2026-10-12 11:24:22 +00:00
2026-10-16 23:56:33 +00:00
2026-10-15 19:51:22 +00:00
2026-10-09 21:29:36 +00:00
2026-10-07 22:11:14 +00:00
2026-09-30 18:49:29 +00:00
2026-10-16 16:23:55 +00:00
2026-10-01 22:32:29 +00:00
2026-09-29 13:58:09 +00:00
2026-09-29 03:32:19 +00:00
2026-10-10 08:51:21 +00:00
2026-10-10 08:51:21 +00:00
2026-10-08 19:15:17 +00:00
2026-10-16 06:06:54 +00:00
2026-10-15 10:46:59 +00:00
2026-10-16 19:26:46 +00:00
2026-10-16 14:38:19 +00:00
2026-10-16 19:26:46 +00:00
2026-10-15 15:12:58 +00:00
2026-10-16 19:08:19 +00:00
2026-10-06 23:28:55 +00:00
2026-10-15 21:44:12 +00:00
2026-10-08 20:11:43 +00:00
2026-10-16 19:08:19 +00:00
2026-10-16 15:43:21 +00:00
2026-10-15 22:25:58 +00:00
2026-10-16 18:39:31 +00:00
2026-10-13 16:15:41 +00:00
2026-10-16 16:40:17 +00:00
2026-10-07 11:18:05 +00:00
2026-10-01 09:52:54 +00:00
2026-10-16 04:42:32 +00:00
2026-10-13 17:22:34 +00:00
2026-10-14 16:48:00 +00:00
2026-10-15 15:12:58 +00:00
2026-10-10 01:25:00 +00:00
2026-10-16 14:38:19 +00:00
2026-10-14 17:56:24 +00:00
2026-10-08 16:19:09 +00:00
2026-09-29 22:24:09 +00:00
2026-10-15 23:58:30 +00:00
2026-10-14 19:07:44 +00:00
2026-10-14 16:53:24 +00:00
2026-10-15 21:29:41 +00:00
2026-10-07 18:32:50 +00:00
2026-10-02 23:26:27 +00:00
2026-10-06 01:46:33 +00:00
2026-10-15 17:36:47 +00:00
2026-10-15 22:25:58 +00:00
2026-10-14 23:55:50 +00:00
2026-10-06 21:29:35 +00:00
2026-10-15 15:12:58 +00:00
2026-10-16 19:08:19 +00:00
2026-10-10 02:54:59 +00:00
2026-10-12 18:53:49 +00:00
2026-10-07 22:11:14 +00:00
2026-10-16 19:26:46 +00:00
2026-10-15 21:30:56 +00:00
2026-10-07 07:57:14 +00:00
2026-10-15 09:49:32 +00:00
2026-10-15 22:25:58 +00:00
2026-10-13 22:07:59 +00:00
2026-10-15 21:07:40 +00:00
2026-10-02 00:46:14 +00:00
2026-10-12 17:52:12 +00:00
2026-10-15 19:01:43 +00:00
2026-10-16 17:31:47 +00:00
2026-10-15 19:51:22 +00:00
2026-10-16 19:26:46 +00:00
2026-10-01 18:05:05 +00:00
2026-10-13 22:40:57 +00:00
2026-10-14 02:01:49 +00:00
2026-10-16 06:06:54 +00:00
2026-10-01 15:57:03 +00:00
2026-10-08 01:12:16 +00:00
2026-10-16 21:00:02 +00:00
2026-10-01 15:57:03 +00:00
2026-10-07 22:11:14 +00:00
2026-10-16 21:00:02 +00:00
2026-10-16 18:39:31 +00:00
2026-10-12 13:39:54 +00:00