Skip to content

Commit

Permalink
Merge pull request #7980 from saswatamcode/cut-release-0.37.2
Browse files Browse the repository at this point in the history
* Fix potential deadlock in hedging request (#7962)

Signed-off-by: SungJin1212 <[email protected]>

* sidecar: fix limit mintime (#7970)

Signed-off-by: Michael Hoffmann <[email protected]>
Signed-off-by: Saswata Mukherjee <[email protected]>

* Cut patch release v0.37.2

Signed-off-by: Saswata Mukherjee <[email protected]>

* Fix changelog

Signed-off-by: Saswata Mukherjee <[email protected]>

---------

Signed-off-by: SungJin1212 <[email protected]>
Signed-off-by: Michael Hoffmann <[email protected]>
Signed-off-by: Saswata Mukherjee <[email protected]>
Co-authored-by: SungJin1212 <[email protected]>
Co-authored-by: Michael Hoffmann <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2024
2 parents e0812e2 + c071d51 commit 18291a7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,20 @@ NOTE: As semantic versioning states all 0.y.z releases can contain breaking chan

We use *breaking :warning:* to mark changes that are not backward compatible (relates only to v0.y.z releases.)

## [v0.37.1](https://github.com/thanos-io/thanos/tree/release-0.37) - 03.12.2024
## [v0.37.2](https://github.com/thanos-io/thanos/tree/release-0.37) - 11.12.2024

### Fixed

- [#7970](https://github.com/thanos-io/thanos/pull/7970) Sidecar: Respect min-time setting.
- [#7962](https://github.com/thanos-io/thanos/pull/7962) Store: Fix potential deadlock in hedging request.

### Added

### Changed

### Removed

## [v0.37.1](https://github.com/thanos-io/thanos/tree/release-0.37) - 04.12.2024

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.37.1
0.37.2
2 changes: 1 addition & 1 deletion cmd/thanos/sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ func (s *promMetadata) UpdateTimestamps(ctx context.Context) error {
return err
}

s.mint = min(s.limitMinTime.PrometheusTimestamp(), mint)
s.mint = max(s.limitMinTime.PrometheusTimestamp(), mint)
s.maxt = math.MaxInt64

return nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/exthttp/hedging.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ func (hrt *hedgingRoundTripper) RoundTrip(req *http.Request) (*http.Response, er
}
duration := float64(time.Since(start).Milliseconds())
hrt.mu.Lock()
defer hrt.mu.Unlock()
err = hrt.TDigest.Add(duration)
if err != nil {
return nil, err
}
hrt.mu.Unlock()
return resp, err
}

Expand Down

0 comments on commit 18291a7

Please sign in to comment.