Skip to content

Commit 18291a7

Browse files
saswatamcodeSungJin1212MichaHoffmann
authored
Merge pull request #7980 from saswatamcode/cut-release-0.37.2
* 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]>
2 parents e0812e2 + c071d51 commit 18291a7

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,20 @@ NOTE: As semantic versioning states all 0.y.z releases can contain breaking chan
88

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

11-
## [v0.37.1](https://github.com/thanos-io/thanos/tree/release-0.37) - 03.12.2024
11+
## [v0.37.2](https://github.com/thanos-io/thanos/tree/release-0.37) - 11.12.2024
12+
13+
### Fixed
14+
15+
- [#7970](https://github.com/thanos-io/thanos/pull/7970) Sidecar: Respect min-time setting.
16+
- [#7962](https://github.com/thanos-io/thanos/pull/7962) Store: Fix potential deadlock in hedging request.
17+
18+
### Added
19+
20+
### Changed
21+
22+
### Removed
23+
24+
## [v0.37.1](https://github.com/thanos-io/thanos/tree/release-0.37) - 04.12.2024
1225

1326
### Fixed
1427

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.37.1
1+
0.37.2

cmd/thanos/sidecar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ func (s *promMetadata) UpdateTimestamps(ctx context.Context) error {
505505
return err
506506
}
507507

508-
s.mint = min(s.limitMinTime.PrometheusTimestamp(), mint)
508+
s.mint = max(s.limitMinTime.PrometheusTimestamp(), mint)
509509
s.maxt = math.MaxInt64
510510

511511
return nil

pkg/exthttp/hedging.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ func (hrt *hedgingRoundTripper) RoundTrip(req *http.Request) (*http.Response, er
4848
}
4949
duration := float64(time.Since(start).Milliseconds())
5050
hrt.mu.Lock()
51+
defer hrt.mu.Unlock()
5152
err = hrt.TDigest.Add(duration)
5253
if err != nil {
5354
return nil, err
5455
}
55-
hrt.mu.Unlock()
5656
return resp, err
5757
}
5858

0 commit comments

Comments
 (0)