Skip to content

Outbox'ed messages not dispatched after app-crash #565

Description

@mhartwig22

Hi,

I setup a simple SQS backed outbox app (based on EF core and persistence to SQL server).
When a simple controller method is triggered, I use the injected IDbContextOutbox to PublishAsync(...) 1,000 messages.
As expected, upon calling SaveChangesAndFlushMessagesAsync(), they get persisted in the db and delivery to SQS starts.

Crashing the app half-way through the process, leaves 955 of the messages in the SQS queue and 232 items in the [wolverine_outgoing_envelopes] table.
Upon restarting the app, the outstanding messages are not delivered (I waited for over an hour).

Am I missing some configuration? I noticed the old node_id is still registered in the [wolverine_node_assignments] table.
I can reproduce this every single time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions