Is there a setting that allows messages not to be removed from the stream in the case of term()? #5110
Unanswered
AlexandrTQ
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It depends on your stream retention policy, what did you set it to? Show |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I read an event from subject $JS.EVENT.ADVISORY.CONSUMER.MAX_DELIVERIES.., I can get the original message.
When I try to do the same for the $JS.EVENT.ADVISORY.CONSUMER.MSG_TERMINATED.. event, i get 404 when trying to get the original message.
According to the documentation: https://docs.nats.io/using-nats/developer/develop_jetstream/consumers.
"If you also need to have access to the message in question then you can use the message's sequence number included in the advisory to retrieve that specific message by sequence number from the stream. If a message reaches its maximum level of delivery attempts, it will still stay in the stream until it is manually deleted or manually acknowledged."
As I understand it, by default, only messages that have reached max_delivered remain in the stream. Is it possible to prevent term() messages from being deleted in the same way?
Beta Was this translation helpful? Give feedback.
All reactions