Skip to content

Commit 14da5e6

Browse files
committed
check stats exists before callback stat within newResult
1 parent fcd68bd commit 14da5e6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Fixed sometime panic on stats receive in query service
2+
13
## v3.99.7
24
* Fixed not passing request context to topic event logs
35
* Fixed deadlock on closing table session with internal query session core

internal/query/result.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func newResult(
169169

170170
r.lastPart = part
171171

172-
if r.statsCallback != nil {
172+
if part.GetExecStats() != nil && r.statsCallback != nil {
173173
r.statsCallback(stats.FromQueryStats(part.GetExecStats()))
174174
}
175175

0 commit comments

Comments
 (0)