mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-13 23:39:33 +01:00
volume: skip the proxy lookup error when the inbound request is gone
This commit is contained in:
1 parent
21c4de24e9
commit
29d00ae794
2 files changed
+15
No files matched your search
@@ -67,6 +67,9 @@ func (vs *VolumeServer) proxyReqToTargetServer(w http.ResponseWriter, r *http.Re
|
||||
}
|
||||
lookupResult, err := operation.LookupVolumeIdWithContext(r.Context(), vs.GetMaster, vs.grpcDialOption, volumeId.String())
|
||||
if err != nil && vs.ReadMode == "proxy" {
|
||||
if r.Context().Err() != nil {
|
||||
return
|
||||
}
|
||||
glog.V(0).InfofCtx(r.Context(), "lookup error: %v %s", err, r.URL.Path)
|
||||
InternalError(w, r, nil)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user