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
Fix consumer naming conflict: handle stale consumers on startup
When routing NATS through DefaultRqueuePoller, consumer names changed from
"rqueue-<queue>-<bean>_<method>" to "rqueue-<queue>". Stale consumers
from the previous naming scheme can remain on the NATS server, causing
"filtered consumer not unique" errors when the new code tries to create
a consumer with the same filter subject.
Fix: when ensureConsumer encounters error 10100 (filtered consumer not
unique), list all consumers on the stream and find one with the matching
filter subject. Reuse the existing consumer instead of failing startup.
This allows the app to recover from unclean shutdowns and naming scheme
changes without requiring manual NATS cleanup.
Assisted-By: Claude Code
0 commit comments