Skip to content

Commit 31c6115

Browse files
Query: fix partial response for distributed instant query (#8211)
This commit fixes a typo in partial response handling for distributed instant queries. Signed-off-by: Michael Hoffmann <[email protected]>
1 parent c0b5500 commit 31c6115

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
2222

2323
### Fixed
2424

25+
- [#8211](https://github.com/thanos-io/thanos/pull/8211) Query: fix panic on nested partial response in distributed instant query
26+
2527
## [v0.38.0](https://github.com/thanos-io/thanos/tree/release-0.38) - 03.04.2025
2628

2729
### Fixed

pkg/api/query/grpc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func (g *GRPCAPI) Query(request *querypb.QueryRequest, server querypb.Query_Quer
120120
})
121121
if result.Err != nil {
122122
if request.EnablePartialResponse {
123-
if err := server.Send(querypb.NewQueryWarningsResponse(err)); err != nil {
123+
if err := server.Send(querypb.NewQueryWarningsResponse(result.Err)); err != nil {
124124
return err
125125
}
126126
return nil

0 commit comments

Comments
 (0)