Skip to content

fix: recover from panic when watch channel is closed during event send#51

Merged
axfor merged 1 commit intomainfrom
x2
Mar 14, 2026
Merged

fix: recover from panic when watch channel is closed during event send#51
axfor merged 1 commit intomainfrom
x2

Conversation

@axfor
Copy link
Owner

@axfor axfor commented Mar 14, 2026

  • Add defer/recover to sendHistoricalEvents, notifyWatches, and slowSendEvent to prevent "send on closed channel" panic during test cleanup
  • Fix TestLeaseRestart_Single_ExpiresAfterRestart timing issue by retrying key deletion check after async lease revoke

- Add defer/recover to sendHistoricalEvents, notifyWatches, and slowSendEvent
  to prevent "send on closed channel" panic during test cleanup
- Fix TestLeaseRestart_Single_ExpiresAfterRestart timing issue by retrying
  key deletion check after async lease revoke
@axfor axfor merged commit d915246 into main Mar 14, 2026
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.

1 participant