When using Fetch() with an OrderedConsumer and a delivery policy of DeliverLastPerSubjectPolicy multiple messages for a single subject will be returned. Instead of one message per subject. The last message for each subject is not returned.
Expected behavior
The last message per subject is returned in the results. Each subject is unique.
I was able to reproduce this bug.
It seems that for some reason the ordered consumer with this config is instantly recreated, and recreated consumer always resumes as last known sequence.
Observed behavior
When using Fetch() with an OrderedConsumer and a delivery policy of DeliverLastPerSubjectPolicy multiple messages for a single subject will be returned. Instead of one message per subject. The last message for each subject is not returned.
Expected behavior
The last message per subject is returned in the results. Each subject is unique.
Server and client version
Server: 2.10.16 Client 1.36.0
Host environment
N/A
Steps to reproduce