Skip to content

op-node/derive: drop bad channel decompression as NotEnoughData#19499

Merged
sebastianst merged 2 commits intodevelopfrom
seb/fix-19492-channel-decompression-error
Mar 12, 2026
Merged

op-node/derive: drop bad channel decompression as NotEnoughData#19499
sebastianst merged 2 commits intodevelopfrom
seb/fix-19492-channel-decompression-error

Conversation

@sebastianst
Copy link
Copy Markdown
Member

Summary

  • Fixes WriteChannel error classification in ChannelInReader.NextBatch: returns NotEnoughData (immediate continue, no backoff) instead of NewTemporaryError when channel data fails to decompress
  • Downgrades the log.Error in WriteChannel to log.Warn since this is bad batcher data, not an infrastructure failure

The channel is already consumed from the ChannelBank/ChannelAssembler before WriteChannel is called, so a retry would not re-read the same channel. The TemporaryError caused one unnecessary backoff cycle and misleading Error-level logging.

Closes #19492. Part of #19491.

🤖 Generated by Claude Code

Fixes WriteChannel error classification in ChannelInReader.NextBatch:
returns NotEnoughData (immediate continue, no backoff) instead of
NewTemporaryError when channel data fails to decompress.

Also downgrades the log.Error in WriteChannel to log.Warn since this
is bad batcher data, not an infrastructure failure.

Fixes #19492.
@sebastianst sebastianst requested review from a team and Inphi March 12, 2026 16:18
Copy link
Copy Markdown
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

LGTM.

Comment thread op-node/rollup/derive/channel_in_reader.go Outdated
Comment thread op-node/rollup/derive/channel_in_reader.go Outdated
@sebastianst sebastianst enabled auto-merge March 12, 2026 21:28
@sebastianst sebastianst added this pull request to the merge queue Mar 12, 2026
Merged via the queue into develop with commit 286f5ad Mar 12, 2026
96 checks passed
@sebastianst sebastianst deleted the seb/fix-19492-channel-decompression-error branch March 12, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

op-node/derive: ChannelInReader swallows channel decompression failure as TemporaryError

2 participants