File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
internal/topic/topicreaderinternal Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1+ * Fixed return private error for commit to stopped partition in topic reader.
12* Stopped wrapping err error as transport error at topic streams (internals)
23
34## v3.56.1
Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ import (
2525var (
2626 PublicErrCommitSessionToExpiredSession = xerrors .Wrap (errors .New ("ydb: commit to expired session" ))
2727
28- errPartitionSessionStoppedByServer = xerrors .Wrap (errors .New ("ydb: topic partition session stopped by server" ))
29- errCommitWithNilPartitionSession = xerrors .Wrap (errors .New ("ydb: commit with nil partition session" ))
28+ errCommitWithNilPartitionSession = xerrors .Wrap (errors .New ("ydb: commit with nil partition session" ))
3029)
3130
3231type partitionSessionID = rawtopicreader.PartitionSessionID
@@ -385,7 +384,7 @@ func (r *topicStreamReaderImpl) checkCommitRange(commitRange commitRange) error
385384 }
386385
387386 if session .Context ().Err () != nil {
388- return xerrors .WithStackTrace (fmt . Errorf ( "ydb: commit error: %w" , errPartitionSessionStoppedByServer ) )
387+ return xerrors .WithStackTrace (PublicErrCommitSessionToExpiredSession )
389388 }
390389
391390 ownSession , err := r .sessionController .Get (session .partitionSessionID )
You can’t perform that action at this time.
0 commit comments