MCPcopy
hub / github.com/grafana/tempo / isFatalError

Function isFatalError

tempodb/encoding/vparquet4/readers.go:164–170  ·  view source on GitHub ↗

isFatalError is a helper function to determine if an error is fatal or not. ReaderAt interfaces are expected to to return io.EOF and valid data simultaneously.

(err error)

Source from the content-addressed store, hash-verified

162// isFatalError is a helper function to determine if an error is fatal or not. ReaderAt interfaces are expected to
163// to return io.EOF and valid data simultaneously.
164func isFatalError(err error) bool {
165 if err == nil || errors.Is(err, io.EOF) {
166 return false
167 }
168
169 return true
170}

Callers 2

ReadAtWithCacheMethod · 0.70
ReadAtMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected