We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f75e7db commit b2d42bdCopy full SHA for b2d42bd
storage/invoke.go
@@ -170,6 +170,15 @@ func ShouldRetry(err error) bool {
170
return true
171
}
172
173
+ // TODO: remove when https://github.com/golang/go/issues/53472 is resolved.
174
+ // We don't want to retry io.EOF errors, since these can indicate normal
175
+ // functioning terminations such as internally in the case of Reader and
176
+ // externally in the case of iterator methods. However, the linked bug
177
+ // requires us to retry EOFs that it causes. We can distinguish
178
+ // EOFs caused by the bug because they are not wrapped correctly.
179
+ if !errors.Is(err, io.EOF) && strings.Contains(err.Error(), "EOF") {
180
+ return true
181
+ }
182
case *net.DNSError:
183
if e.IsTemporary {
184
0 commit comments