Skip to content

op-node/derive: drop pre-Delta span batch as NotEnoughData#19500

Merged
sebastianst merged 1 commit intodevelopfrom
seb/fix-19493-span-batch-pre-delta
Mar 12, 2026
Merged

op-node/derive: drop pre-Delta span batch as NotEnoughData#19500
sebastianst merged 1 commit intodevelopfrom
seb/fix-19493-span-batch-pre-delta

Conversation

@sebastianst
Copy link
Copy Markdown
Member

Summary

  • Fixes pre-Delta span batch handling in ChannelInReader.NextBatch: returns NotEnoughData (immediate continue, no backoff) instead of NewTemporaryError
  • A channel with N span batches in a pre-Delta block previously required N backoff cycles to drain; now it drains immediately

The comment in the old code said "early dropping invalid batches as soon as possible", but NewTemporaryError did the opposite — it triggered backoff+retry, leaving cr.nextBatchFn set so each retry consumed the next bad batch.

Closes #19493. Part of #19491.

🤖 Generated by Claude Code

Returns NotEnoughData instead of NewTemporaryError when a span batch
is encountered before Delta activation. This drains the channel
immediately rather than taking O(N×backoff) cycles.

Fixes #19493.
@sebastianst sebastianst requested review from a team and axelKingsley March 12, 2026 16:18
@sebastianst sebastianst added this pull request to the merge queue Mar 12, 2026
Merged via the queue into develop with commit c6ff4f9 Mar 12, 2026
96 checks passed
@sebastianst sebastianst deleted the seb/fix-19493-span-batch-pre-delta branch March 12, 2026 21:46
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: pre-Delta span batch in ChannelInReader causes O(N×backoff) drain instead of immediate drop

2 participants