Skip to content
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

Add more information to se1quencer panic message #404

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion message/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,15 @@ func (w *Sequencer) Step() error {
// with one exception: messages with zero-valued Clocks are not
// expected to be consistently ordered on clock.
// In QueueUncommitted we synthetically assigned a clock value.
panic("ring clock <= emit.minClock")
panic(fmt.Sprintf("ring clock <= emit.minClock\n%+v", map[string]interface{}{
"uuid": uuid,
"message": w.Dequeued,
"dequeuedClock": w.dequeuedClock,
"offsets": w.offsets,
"partials": w.partials,
"pending": w.pending,
"emit": w.emit,
}))
}
} else if w.dequeuedClock > w.emit.maxClock {
continue // ACK'd clock tells us not to commit.
Expand Down
Loading