[#11] pool: Fix handling SplitInfoError #11

Merged
KirillovDenis merged 1 commit from bugfix/handle_splitinfo_error_frostfs into master 2023-01-23 08:07:30 +00:00
Showing only changes of commit 8d14ad08f1 - Show all commits

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 { func (c *clientStatusMonitor) handleError(st apistatus.Status, err error) error {
if err != nil { 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 return err
} }