MCPcopy
hub / github.com/IBM/sarama / isRetriableListTopicsError

Function isRetriableListTopicsError

admin.go:273–279  ·  view source on GitHub ↗

isRetriableListTopicsError returns true for controller errors and transient transport failures where reconnecting and retrying can succeed.

(err error)

Source from the content-addressed store, hash-verified

271// isRetriableListTopicsError returns true for controller errors and transient
272// transport failures where reconnecting and retrying can succeed.
273func isRetriableListTopicsError(err error) bool {
274 if isRetriableControllerError(err) || shouldCloseBrokerConn(err) {
275 return true
276 }
277
278 return isTimeoutError(err)
279}
280
281// isRetriableBrokerError returns `true` if the given error is a retryable
282// transport error or a timeout.

Callers

nothing calls this directly

Calls 3

shouldCloseBrokerConnFunction · 0.85
isTimeoutErrorFunction · 0.85

Tested by

no test coverage detected