diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-12-10 00:54:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-10 00:54:34 -0800 |
| commit | ae7333d28e77d907a9e7d50055e352c15678e723 (patch) | |
| tree | 4ffee8b47f42e10903691d2f9d6fac2910adeb7d /go.mod | |
| parent | 0cd9f341778775195fb44cc32d1434e63dba4fca (diff) | |
| download | seaweedfs-ae7333d28e77d907a9e7d50055e352c15678e723.tar.xz seaweedfs-ae7333d28e77d907a9e7d50055e352c15678e723.zip | |
fix: cache successful volume lookups instead of failed ones (#7698)
The condition was inverted - it was caching lookups with errors
instead of successful lookups. This caused every replicated write
to make a gRPC call to master for volume location lookup, resulting
in ~1 second latency for writeToReplicas.
The bug particularly affected TTL volumes because:
- More unique volumes are created (separate pools per TTL)
- Volumes expire and get recreated frequently
- Each new volume requires a fresh lookup (cache miss)
- Higher volume churn = more cache misses = more master lookups
With this fix, successful lookups are cached for 10 minutes,
reducing replication latency from ~1s to ~10ms for cached volumes.
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions
