spring-data-redis icon indicating copy to clipboard operation
spring-data-redis copied to clipboard

Switch `StreamMessageListenerContainer` default to not unsubscribe on simple exception

Open hein-hp opened this issue 8 months ago • 10 comments

While using Redis Stream, I encountered an issue where the consumer faced an exception while consuming, leading to the cancellation of subscription by the StreamMessageListenerContainer. I found that this was due to cancelSubscriptionOnError being triggered when encountering an exception. However, StreamReadRequest is package-private, so I have no way to modify cancelSubscriptionOnError. I'd like to inquire about how to handle consumer exceptions during consumption to maintain the subscription intact.

hein-hp avatar May 28 '24 12:05 hein-hp