Skip to content

PostgresqlEventStorageEngine throws exception when asked to source snapshot #4703

Description

@hjohn

The PostgresqlEventStorageEngine doesn't currently handle the SourcingStrategy.Snapshot on its own, but it does implement SnapshotStore. This means that the decorator SnapshotCapableEventStorageEngine is not applied as it is expected that engines that have their own snapshot store implementation handle this directly (in an optimized way).

What needs to be done

The PostgresqlEventStorageEngine should check the SourcingStrategy and if it is Snapshot it should create the source stream with the snapshot as first (optional) message.

This can be done in an optimized form where only a single round trip is done to the server, as it can directly query the snapshots table, immediately followed with some initial events.

Metadata

Metadata

Assignees

Labels

Priority 1: MustHighest priority. A release cannot be made if this issue isn’t resolved.

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions