Skip to content

SnapshotStore and Snapshotter should receive ProcessingContext #4341

@theoema

Description

@theoema

Description

SnapshotStore.load() and SnapshotStore.store() don't receive a ProcessingContext, unlike EventStore.transaction(pc) and TokenStore.storeToken(..., pc) which do. The SnapshottingSourcingHandler has the context in scope but doesn't pass it through.

This makes it impossible to write SnapshotStore implementations that need the ProcessingContext, for example a JpaSnapshotStore (that I've seen on the roadmap) that needs transaction management (same as JpaTokenStore).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Under DiscussionUse to signal that the issue in question is being discussed.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions