Skip to content

Conversation

@buvidk1234
Copy link

What is this PR for?

Re-opens PR #3654 (closed due to accidental fork deletion).

This PR fixes a panic caused by closing an already closed channel in the Batcher.

specific changes

  • Add alreadyClosed flag to track if data channel was closed unexpectedly
  • Skip closing data channel in defer if already closed
  • Add unit test TestBatcher_UnexpectedChannelClose to verify the fix

Fixes

Fixes #3653

- Add alreadyClosed flag to track if data channel was closed unexpectedly
- Skip closing data channel in defer if already closed
- Add unit test TestBatcher_UnexpectedChannelClose to verify the fix
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Batcher scheduler may panic on double close of data channel

1 participant