Merge pull request #47698 from vvoland/v24.0-47658

[24.0 backport] Fix cases where we are wrapping a nil error
This commit is contained in:
Paweł Gronowski 2024-04-09 13:55:20 +02:00 committed by GitHub
commit e0b4fc1aae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ func getTailReader(ctx context.Context, r loggerutils.SizeReaderAt, req int) (io
}
if msgLen != binary.BigEndian.Uint32(buf) {
return nil, 0, errdefs.DataLoss(errors.Wrap(err, "log message header and footer indicate different message sizes"))
return nil, 0, errdefs.DataLoss(errors.New("log message header and footer indicate different message sizes"))
}
found++