Commit 8eff429
* Fix inotify instance exhaustion in pickle backend (Issue #24)
- Reuse and cleanup watchdog observers to prevent inotify resource leaks
- Fallback to polling if inotify instance limit is reached
- Add regression test (will fail if bug is present, pass when fixed)
- Document fix in README
- Note: Two edge-case tests may fail locally, check CI for Linux results
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix test failures caused by inotify changes
- Restore _update_with_defaults calls for proper parameter handling
- Fix cache directory and separate_files parameter handling
- Restore original CacheChangeHandler behavior
- Make polling fallback more conservative (only for inotify-specific errors)
- All pickle core tests now pass locally
* Fix inotify instance exhaustion bug by removing observer reuse
- Remove observer caching that caused 'threads can only be started once' errors
- Create new observer for each cache wait to ensure proper cleanup
- Maintain proper observer lifecycle management
- Fixes Issue #24: inotify instance exhaustion in pickle backend
* Run black code formatter for consistent style
* Remove 2024 inotify instance exhaustion fix section from README
* inotify bug solved so remove xfail
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 68e92d3 commit 8eff429
2 files changed
Lines changed: 78 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | | - | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | | - | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
256 | 260 | | |
257 | 261 | | |
258 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
259 | 276 | | |
| 277 | + | |
260 | 278 | | |
261 | 279 | | |
262 | 280 | | |
263 | 281 | | |
264 | 282 | | |
265 | | - | |
| 283 | + | |
266 | 284 | | |
| 285 | + | |
267 | 286 | | |
268 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
269 | 301 | | |
270 | 302 | | |
271 | 303 | | |
272 | | - | |
| 304 | + | |
| 305 | + | |
273 | 306 | | |
274 | | - | |
275 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
276 | 331 | | |
277 | | - | |
278 | | - | |
| 332 | + | |
| 333 | + | |
279 | 334 | | |
280 | | - | |
281 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
282 | 350 | | |
283 | 351 | | |
284 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | 618 | | |
625 | 619 | | |
626 | 620 | | |
| |||
0 commit comments