Skip to content

Commit b6be3a9

Browse files
authored
Merge pull request #1407 from ydb-platform/fix-tracing-of-finish-event
Cancel context after tracing "finish" event
2 parents ae356c5 + b4074dc commit b6be3a9

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 tracing of `(*grpcClientStream).finish` event
2+
13
## v3.76.4
24
* Added traces and logs for read messages from topic within transaction
35
* Changed result type of `query.Session.NodeID()` from `int64` to `uint32` for compatibility with table session and discovery

internal/conn/grpc_client_stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ func (s *grpcClientStream) SendMsg(m interface{}) (err error) {
120120
}
121121

122122
func (s *grpcClientStream) finish(err error) {
123-
s.streamCancel()
124123
trace.DriverOnConnStreamFinish(s.parentConn.config.Trace(), s.streamCtx,
125124
stack.FunctionID("github.com/ydb-platform/ydb-go-sdk/v3/internal/conn.(*grpcClientStream).finish"), err,
126125
)
126+
s.streamCancel()
127127
}
128128

129129
func (s *grpcClientStream) RecvMsg(m interface{}) (err error) { //nolint:funlen

0 commit comments

Comments
 (0)