mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix: volume Deadlock when exception is thrown (#3613)
* fix: volume Deadlock when exception is thrown * adjust log level
This commit is contained in:
parent
b324a6536c
commit
5ff33eb558
|
@ -50,6 +50,8 @@ func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Reque
|
||||||
select {
|
select {
|
||||||
case <-r.Context().Done():
|
case <-r.Context().Done():
|
||||||
glog.V(4).Infof("request cancelled from %s: %v", r.RemoteAddr, r.Context().Err())
|
glog.V(4).Infof("request cancelled from %s: %v", r.RemoteAddr, r.Context().Err())
|
||||||
|
w.WriteHeader(http.StatusInternalServerError)
|
||||||
|
vs.inFlightDownloadDataLimitCond.L.Unlock()
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
glog.V(4).Infof("wait because inflight download data %d > %d", inFlightDownloadSize, vs.concurrentDownloadLimit)
|
glog.V(4).Infof("wait because inflight download data %d > %d", inFlightDownloadSize, vs.concurrentDownloadLimit)
|
||||||
|
|
Loading…
Reference in a new issue