You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a Mirrored stream using a source that contains messages with Nats-Expected-Last-Subject-Sequence headers still performs sequence checks as per the source stream once performed.
Expected behavior
Mirrored streams to ignore Nats-Expected-Last-Subject-Sequence headers (also possibly other 'Expect' headers?).
Existence of the message in the source alone means the original assertion was valid.
There is no need for a mirror to have the same expectations and checks as the original source stream.
Alternatively an option for mirrored streams to remove source headers would work too for a resolution. (#5409)
wallyqs
changed the title
Mirrored stream stops when an invalid source Nats-Expected-Last-Subject-Sequence appears
Mirrored stream stops when an invalid source Nats-Expected-Last-Subject-Sequence appears [v2.10.20]
Sep 13, 2024
There is a similar issue with messages containing the 'Nats-Expected-Stream' header. They won’t be sent to the mirrored stream unless it is named the same as the source stream.
Observed behavior
Creating a Mirrored stream using a source that contains messages with
Nats-Expected-Last-Subject-Sequence
headers still performs sequence checks as per the source stream once performed.Expected behavior
Mirrored streams to ignore
Nats-Expected-Last-Subject-Sequence
headers (also possibly other 'Expect' headers?).Existence of the message in the source alone means the original assertion was valid.
There is no need for a mirror to have the same expectations and checks as the original source stream.
Alternatively an option for mirrored streams to remove source headers would work too for a resolution. (#5409)
Server and client version
nats-cli: 0.1.5
nats-server: v2.10.20
Host environment
Tested in both Linux/amd64 & Darwin/arm64
Steps to reproduce
cool_stream_mirrored
stream will no longer mirror any new messages because of the invalidNats-Expected-Last-Subject-Sequence
headerRelevant code seems to be
nats-server/server/stream.go
Lines 2468 to 2474 in 7f92c34
nats-server/server/stream.go
Lines 4742 to 4752 in 7f92c34
The text was updated successfully, but these errors were encountered: