Skip to content

Commit

Permalink
Merge pull request #1498 from ydb-platform/improve-wrong-commit-order…
Browse files Browse the repository at this point in the history
…-error

improove error text
  • Loading branch information
rekby authored Nov 11, 2024
2 parents 839711c + f2b5a08 commit 6e8ca8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/topic/topicreadercommon/committer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

var (
ErrCommitDisabled = xerrors.Wrap(errors.New("ydb: commits disabled"))
ErrWrongCommitOrderInSyncMode = xerrors.Wrap(errors.New("ydb: wrong commit order in sync mode"))
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
)

type SendMessageToServerFunc func(msg rawtopicreader.ClientMessage) error
Expand Down

0 comments on commit 6e8ca8f

Please sign in to comment.