Skip to content

Commit 6e8ca8f

Browse files
authored
Merge pull request #1498 from ydb-platform/improve-wrong-commit-order-error
improove error text
2 parents 839711c + f2b5a08 commit 6e8ca8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/topic/topicreadercommon/committer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
var (
2121
ErrCommitDisabled = xerrors.Wrap(errors.New("ydb: commits disabled"))
22-
ErrWrongCommitOrderInSyncMode = xerrors.Wrap(errors.New("ydb: wrong commit order in sync mode"))
22+
ErrWrongCommitOrderInSyncMode = xerrors.Wrap(errors.New("ydb: wrong commit order in sync mode. It means you skipped committing some messages. Out-of-order commits are OK for async mode - you can commit the messages later. But im sync mode, it means deadlock: the code waits for a commit ack from the server, but the server waits for the commits of the skipped message. In sync mode, ensure that you commit messages/batches in the same order as you read them")) //nolint:lll
2323
)
2424

2525
type SendMessageToServerFunc func(msg rawtopicreader.ClientMessage) error

0 commit comments

Comments
 (0)