Skip to content
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
7 changes: 7 additions & 0 deletions server/jetstream_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -8765,6 +8765,13 @@ func (mset *stream) stateSnapshotLocked() []byte {
}

// Older v1 version with deleted as a sorted []uint64.
// For a stream with millions or billions of interior deletes, this will be huge.
// Now that all server versions 2.10.+ support binary snapshots, we should never fall back.
assert.Unreachable("Legacy JSON stream snapshot used", map[string]any{
"stream": mset.cfg.Name,
"account": mset.acc.Name,
})

state := mset.store.State()
snap := &streamSnapshot{
Msgs: state.Msgs,
Expand Down
Loading