Skip to content

PostgresChannelMessageTableSubscriber not properly handling Database Failover #9061

@joshiste

Description

@joshiste

In what version(s) of Spring Integration are you seeing this issue?

6.x

Describe the bug

When the database is doing a failover the PostgresChannelMessageTableSubscriber doesn't notice and will never receive new notifications.
For example on AWS RDS instance with multi-AZ standby, when performing a failover the IP address for the DNS does change. But PostgresChannelMessageTableSubscriber never re-establishes a connection, nor has some other measurement in place to validate that the connection is still valid.

To Reproduce

Perform a DB failover. After this no more messages will be processed.

Expected behavior

Eventually the PostgresChannelMessageTableSubscriber obtains a new connection after failover, and message processing will work again.

Sample

Sorry, not being able to provide a complete sample, as this involves infrastructure 🤷‍♂️

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions