Commit 88d19ce
Retry delete_directory on Lustre ENOTEMPTY race
shutil.rmtree can fail with "Directory not empty" on networked
filesystems (Lustre) due to metadata propagation delays. Retry
up to 5 times with 1s backoff before raising.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8022969 commit 88d19ce
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
127 | 135 | | |
128 | 136 | | |
129 | 137 | | |
| |||
0 commit comments