forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
86138: changefeedccl: add non-batching retries to kafka sink r=samiskin a=samiskin Resolves cockroachdb#80313 A recurring painpoint of changefeeds is the "message too large" kafka issue where a fixed size batch may sometimes end up being too many bytes in size due to varying message sizes, but there was no mechanism to reduce the batch size dynamically, so the changefeed would simply fail. This PR adds an internal retry mechanism to the kafka sink, where upon observing a messagetoolarge error the sink will pause all new incoming messages, attempt to retry those messages with a progressively smaller batch size, then once one is found resumes operation with the original configuration. Release note (bug fix): Changefeeds emitting to Kafka upon receiving a "message too large" error will now halve the size of their batches until it either succeeds or a batch size of 1 fails. Release justification: high priority bug fix, new code is mostly only ran in cases where an unrecoverable error would've occurred previously and can be toggled with a cluster setting. Co-authored-by: Shiranka Miskin <[email protected]>
- Loading branch information
Showing
9 changed files
with
629 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.