Skip to content

AbstractMessageListenerContainer ignores unknown SQS queues #104

@birnbuazn

Description

@birnbuazn

Type: Feature

Is your feature request related to a problem? Please describe.
io.awspring.cloud.messaging.listener.AbstractMessageListenerContainer#initialize validates queue attributes and silently ignores unknown SQS queues.

This is problematic in our case, where we configure different queue names for different environments (DEV/TEST/PROD/...), and configuration problems should show at application boot time.

If queue names are misconfigured, the application will become healthy with the current implementation, but will fail to consume any messages, which is less than ideal if we stage this error to production.

Describe the solution you'd like
AbstractMessageListenerContainer should have a flag ignoreUnknown or similar, and should throw an Exception, if this flag is set and an unknown queue is encountered during initialisation.

Happy to contribute code, if you like.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: sqsSQS integration related issuetype: enhancementSmaller enhancement in existing integration

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions