Commit a78e8b4
khushthecoder
fix: add retry, timeout, and backoff defaults for GCS, S3, and HTTP filesystem access
Configure sensible retry and timeout defaults in _init_filesystem() so
that transient network errors (503, 429, DNS failures, timeouts) are
automatically retried instead of immediately crashing with a cryptic
OSError.
Changes:
- GCS (gcsfs): retry=3, timeout=60s
- S3 (s3fs): retries=3, connect_timeout=60s, read_timeout=60s
- HTTP/HTTPS (fsspec): timeout=60s
- Local filesystems are unaffected
All defaults use setdefault() so users can still override via
storage_options if needed.
Closes #13031 parent cc94c93 commit a78e8b4
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
482 | 488 | | |
483 | 489 | | |
484 | 490 | | |
| |||
501 | 507 | | |
502 | 508 | | |
503 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
504 | 517 | | |
505 | 518 | | |
506 | 519 | | |
| |||
509 | 522 | | |
510 | 523 | | |
511 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
512 | 528 | | |
513 | 529 | | |
514 | 530 | | |
| |||
0 commit comments