-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage: assert when appending empty batch #14745
storage: assert when appending empty batch #14745
Conversation
4dd92e8
to
cffa497
Compare
ducktape was retried in job https://buildkite.com/redpanda/redpanda/builds/40430#018b97b7-ba59-4e22-a89d-4898d1cca092 |
ducktape was retried in job https://buildkite.com/redpanda/redpanda/builds/40430#018b97c6-89b1-4d8a-a539-f14e2a417e49 |
ducktape was retried in job https://buildkite.com/redpanda/redpanda/builds/40430#018b97c6-89ba-4977-9688-f97e8c403897 |
/cdt |
/cdt |
/ci-repeat 5 |
new failures in https://buildkite.com/redpanda/redpanda/builds/40917#018bbdc5-6e31-45e1-b7db-783b087a47d1:
new failures in https://buildkite.com/redpanda/redpanda/builds/46954#018e833f-7228-4e5f-9fdc-1c82a6ebe265:
new failures in https://buildkite.com/redpanda/redpanda/builds/46954#018e8351-6c39-433d-9587-d3c808011d16:
new failures in https://buildkite.com/redpanda/redpanda/builds/46954#018e8351-6c3c-4155-9c6a-402d0e0ddbb0:
new failures in https://buildkite.com/redpanda/redpanda/builds/46954#018e8351-6c33-495b-95ac-cedb85c2d351:
new failures in https://buildkite.com/redpanda/redpanda/builds/46954#018e8351-6c36-4acf-8de8-8ae748679aea:
|
is this still useful? seems like maybe? |
cffa497
to
1424e44
Compare
Whoops! I don't recall if there was anything that fell out of the CDT runs. Rebased, and will rerun. |
1424e44
to
8811027
Compare
8811027
to
77a94bc
Compare
Empty batches have been seen to be not handled well in some cases (e.g. in v23.1 and below, read replicas could produce empty batches). This introduces an assert ensuring we no longer produce them. Note that specifically, an empty batch refers to the offsets, where the inclusive bounds of the batch are [N, N-1]. Here's an example of one bug caused by empty batches: redpanda-data@036f04d
77a94bc
to
6753247
Compare
Presumably none of the write-caching stuff would invalidate this assertion? cc @bharathv @nvartolomei |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presumably none of the write-caching stuff would invalidate this assertion?
Nope.
Empty batches have been seen to be not handled well in some cases (e.g. in v23.1 and below, read replicas could produce empty batches). This introduces an assert ensuring we no longer produce them.
Backports Required
Release Notes