Skip to content

Commit db24b7a

Browse files
authored
Merge branch 'master' into allow-writer-queue-overflow
2 parents 3cc25f6 + 80db1c5 commit db24b7a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* Allowed overflow queue limit for one goroutine at time for topic writer
2+
* Removed delay before send commit in sync mode of a topic reader
23

34
## v3.105.2
45
* Improved the `ydb.WithSessionPoolSessionUsageLimit` option for allow `time.Duration` as argument type for limit max session time to live since create time

internal/topic/topicreadercommon/committer.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ func (c *Committer) waitSendTrigger(ctx context.Context) {
167167
case <-c.commitLoopSignal:
168168
}
169169

170+
// In sync mode, ignore time lag trigger and send immediately,
171+
// because we need to wait for commit ack from the server and can't get
172+
// more commit messages until the ack is received.
173+
if c.mode == CommitModeSync {
174+
return
175+
}
176+
170177
if c.BufferTimeLagTrigger == 0 {
171178
return
172179
}

0 commit comments

Comments
 (0)