aboutsummaryrefslogtreecommitdiff
path: root/weed/util/http_util.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-08-19 03:36:15 -0700
committerchrislu <chris.lu@gmail.com>2022-08-19 03:36:15 -0700
commitaac45f3e89a2c1704e9f2d19c957d950e7268e2b (patch)
treec6f17636e7f3c595632a7f4e5b03a3f0ecf3b704 /weed/util/http_util.go
parent58dd8803224dd5340c54cecf843363fa2570905f (diff)
downloadseaweedfs-aac45f3e89a2c1704e9f2d19c957d950e7268e2b.tar.xz
seaweedfs-aac45f3e89a2c1704e9f2d19c957d950e7268e2b.zip
filer: retryable when error is not found
Diffstat (limited to 'weed/util/http_util.go')
-rw-r--r--weed/util/http_util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/util/http_util.go b/weed/util/http_util.go
index 00dac26f7..783ff2379 100644
--- a/weed/util/http_util.go
+++ b/weed/util/http_util.go
@@ -309,7 +309,7 @@ func ReadUrlAsStream(fileUrl string, cipherKey []byte, isContentGzipped bool, is
}
defer CloseResponse(r)
if r.StatusCode >= 400 {
- retryable = r.StatusCode >= 500
+ retryable = r.StatusCode == http.StatusNotFound || r.StatusCode >= 500
return retryable, fmt.Errorf("%s: %s", fileUrl, r.Status)
}