Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Fixed error logging in `topic.UpdateOffsetsInTransaction`

## v3.115.4
* Supported reusing one IP address and host name after nodes restart

Expand Down
19 changes: 10 additions & 9 deletions internal/topic/topicreaderinternal/stream_reader_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,16 +232,17 @@ func (r *topicStreamReaderImpl) commitWithTransaction(

req := r.createUpdateOffsetRequest(ctx, batch, tx)
updateOffsetInTransactionErr := retry.Retry(ctx, func(ctx context.Context) (err error) {
logCtx := r.cfg.BaseContext
onDone := trace.TopicOnReaderUpdateOffsetsInTransaction(
r.cfg.Trace,
&logCtx,
r.readerID,
r.readConnectionID,
tx.SessionID(),
tx,
)
defer func() {
logCtx := r.cfg.BaseContext
trace.TopicOnReaderUpdateOffsetsInTransaction(
r.cfg.Trace,
&logCtx,
r.readerID,
r.readConnectionID,
tx.SessionID(),
tx,
)
onDone(err)
}()

err = r.topicClient.UpdateOffsetsInTransaction(ctx, req)
Expand Down
Loading