seaweedfs/weed/wdclient
Chris Lu 066410dbd0
Fix S3 Gateway Read Failover #8076 (#8087)
* fix s3 read failover #8076

- Implement cache invalidation in vidMapClient
- Add retry logic in shared PrepareStreamContentWithThrottler
- Update S3 Gateway to use FilerClient directly for invalidation support
- Remove obsolete simpleMasterClient struct

* improve observability for chunk re-lookup failures

Added a warning log when volume location re-lookup fails after cache invalidation in PrepareStreamContentWithThrottler.

* address code review feedback

- Prevent infinite retry loops by comparing old/new URLs before retry
- Update fileId2Url map after successful re-lookup for subsequent references
- Add comprehensive test coverage for failover logic
- Add tests for InvalidateCache method

* Fix: prevent data duplication in stream retry and improve VidMap robustness

* Cleanup: remove redundant check in InvalidateCache
2026-01-22 14:07:24 -08:00
..
exclusive_locks ExclusiveLocker only create one renew goroutine (#6269) 2024-11-21 08:27:12 -08:00
net2 chore: execute goimports to format the code (#7983) 2026-01-07 13:06:08 -08:00
resource_pool convert error fromating to %w everywhere (#6995) 2025-07-16 23:39:27 -07:00
filer_client.go fix: ARM v7 alignment issue for 64-bit atomic operations (#7652) 2025-12-08 01:32:50 -08:00
masterclient_test.go chore: execute goimports to format the code (#7983) 2026-01-07 13:06:08 -08:00
masterclient.go Fix worker reconnection race condition causing context canceled errors (#7825) 2025-12-19 19:02:56 -08:00
vid_map_test.go chore: execute goimports to format the code (#7983) 2026-01-07 13:06:08 -08:00
vid_map.go Fix S3 Gateway Read Failover #8076 (#8087) 2026-01-22 14:07:24 -08:00
vidmap_client.go Fix S3 Gateway Read Failover #8076 (#8087) 2026-01-22 14:07:24 -08:00
vidmap_invalidation_test.go Fix S3 Gateway Read Failover #8076 (#8087) 2026-01-22 14:07:24 -08:00