Skip to content

Conversation

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Test Results

  7 files  ± 0    7 suites  ±0   5m 8s ⏱️ + 1m 53s
 49 tests + 2   49 ✅ + 2  0 💤 ±0  0 ❌ ±0 
210 runs  +10  210 ✅ +10  0 💤 ±0  0 ❌ ±0 

Results for commit 634ba8e. ± Comparison against base commit e1bc1d4.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. +1 for merging :-)

@AhmedSoliman AhmedSoliman force-pushed the pr4140 branch 2 times, most recently from 1d24dc9 to 634ba8e Compare January 8, 2026 10:03
Add a record size limit check at append time in Bifrost to validate that
individual records do not exceed a configured maximum size.

Important note: This configuration option is not going to be effective without implementing size estimation of records. At the moment, all typed records are assumed to be 2048 bytes in size which makes this check useless. Nevertheless,
This check is useful for the future when we implement size estimation of records.

Changes:
- Add `bifrost.record-size-limit` configuration option that defaults to `networking.message-size-limit` (32 MiB) and is clamped to that value
- Add `BatchTooLarge/RecordTooLarge` error variants to get notified when a record too large or when a batch is too large depending on whether you're using Appender or BackgroundAppender.
- Add record size validation to all `LogSender` enqueue methods in `BackgroundAppender` to fail fast at enqueue time

This prevents oversized records from being written to the log, which could cause issues during replication and network transmission.

Part of #4130, #4132
@AhmedSoliman AhmedSoliman merged commit 6203301 into main Jan 8, 2026
14 of 16 checks passed
@AhmedSoliman AhmedSoliman deleted the pr4140 branch January 8, 2026 10:28
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants