-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
op-batcher: prevent SpanChannelOut
RLP bytes overflowing MaxRLPBytesPerChannel
#14310
op-batcher: prevent SpanChannelOut
RLP bytes overflowing MaxRLPBytesPerChannel
#14310
Conversation
/ci authorize 0733746 |
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.
Thanks for this fix. Have a few tweaks I would like and then we can get this in!
Hi Geoknee, I had missed performing a fresh compression, which is an important part of the process. |
/ci authorize 63cf3d7 |
Thanks -- couple of small items outstanding. Are you able to address those? |
Sorry, may I know which small outstanding items I missed? |
The unresolved conversations above. One |
I am done with the feedback above. |
/ci authorize 2ee7a30 |
SpanChannelOut
RLP bytes overflowing MaxRLPBytesPerChannel
SpanChannelOut
RLP bytes overflowing MaxRLPBytesPerChannel
SpanChannelOut
RLP bytes overflowing MaxRLPBytesPerChannel
dcce927
Description
Noticed that when the channel RLP bytes exceed MaxRLPBytesPerChannel, the batcher does not remove the excess batch. This causes the OP-Node to encounter an error.
msg="failed to read batch from channel reader, skipping to next channel now" err="rlp: value size exceeds available input length"
Tests
I added the test
testSpanChannelOut_ExceedMaxRLPBytesPerChannel
to ensure that the batcher removes the excess batch when the channel RLP bytes exceed MaxRLPBytesPerChannel.Additional context
Batcher Log
lvl=info msg="Channel closed" input_bytes=10043790 output_bytes=74565 full_reason="channel full: could not take 10043790 bytes as replacement of channel of 9925704 bytes, max is 10000000. err: batch would cause RLP bytes to go over limit" compr_ratio=0.007423990346273668
Op-Node Derivation Log
msg="failed to read batch from channel reader, skipping to next channel now" err="rlp: value size exceeds available input length"
Metadata