[TrueCloudLab#11] pool: Fix handling SplitInfoError

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
pull/14/head
Denis Kirillov 2023-01-19 15:04:21 +03:00 committed by Alex Vanin
parent b2a37543d3
commit cf9a54dcda
1 changed files with 8 additions and 1 deletions

View File

@ -995,7 +995,14 @@ func (c *clientWrapper) incRequests(elapsed time.Duration, method MethodIndex) {
func (c *clientStatusMonitor) handleError(st apistatus.Status, err error) error {
if err != nil {
c.incErrorRate()
// non-status logic error that could be returned
// from the SDK client; should not be considered
// as a connection error
var siErr *object.SplitInfoError
if !errors.As(err, &siErr) {
c.incErrorRate()
}
return err
}