Skip to content

Commit

Permalink
Release 1.15 (#5423)
Browse files Browse the repository at this point in the history
* Do not reuse remote write requests in case of error (#5422)

* Do not reuse remote write requests in case of error

Signed-off-by: Alan Protasio <alanprot@gmail.com>

* Changelog

Signed-off-by: Alan Protasio <alanprot@gmail.com>

---------

Signed-off-by: Alan Protasio <alanprot@gmail.com>

* Release and bump version to 1.15.3

Signed-off-by: Alan Protasio <alanprot@gmail.com>

* Fix Changelog

Signed-off-by: Alan Protasio <alanprot@gmail.com>

---------

Signed-off-by: Alan Protasio <alanprot@gmail.com>
  • Loading branch information
alanprot committed Jun 23, 2023
1 parent 62e3836 commit 21e8366
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

## master / unreleased

## 1.15.3 2023-06-22

* [BUGFIX] Distributor: Fix potential data corruption in cases of timeout between distributors and ingesters. #5422

## 1.15.2 2023-05-09

* [ENHANCEMENT] Update Go version to 1.20.4. #5299
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
1.15.2
1.15.3
7 changes: 6 additions & 1 deletion pkg/distributor/distributor.go
Expand Up @@ -843,7 +843,12 @@ func (d *Distributor) send(ctx context.Context, ingester ring.InstanceDesc, time
req.Source = source

_, err = c.PushPreAlloc(ctx, req)
cortexpb.ReuseWriteRequest(req)

// We should not reuse the req in case of errors:
// See: https://github.com/grpc/grpc-go/issues/6355
if err == nil {
cortexpb.ReuseWriteRequest(req)
}

if len(metadata) > 0 {
d.ingesterAppends.WithLabelValues(ingester.Addr, typeMetadata).Inc()
Expand Down

0 comments on commit 21e8366

Please sign in to comment.