Skip to content

[#4341] Propagate ProcessingContext to SnapshotStore and Snapshotter#4342

Open
theoema wants to merge 1 commit intoAxonIQ:mainfrom
theoema:feature/snapshot-store-processing-context
Open

[#4341] Propagate ProcessingContext to SnapshotStore and Snapshotter#4342
theoema wants to merge 1 commit intoAxonIQ:mainfrom
theoema:feature/snapshot-store-processing-context

Conversation

@theoema
Copy link
Copy Markdown
Contributor

@theoema theoema commented Mar 21, 2026

Resolves #4341

Adds ProcessingContext to SnapshotStore and Snapshotter interfaces, aligning them with EventStore and TokenStore which already receive it.

  • SnapshotStore.store() and load()@Nullable ProcessingContext, matching TokenStore
  • Snapshotter.store() and load() — non-null, internal interface only called from SnapshottingSourcingHandler which always has a context
  • SnapshottingSourcingHandler passes its existing pc through to Snapshotter
  • Updated InMemorySnapshotStore, AxonServerSnapshotStore, and tests

@theoema theoema requested a review from a team as a code owner March 21, 2026 17:10
@theoema theoema requested review from MateuszNaKodach, hatzlj and smcvb and removed request for a team March 21, 2026 17:10
- Add @nullable ProcessingContext parameter to SnapshotStore.store()
  and SnapshotStore.load(), aligned with TokenStore's signature
- Add ProcessingContext parameter to Snapshotter.store() and
  Snapshotter.load() (non-null, internal interface always called
  from within a processing context)
- Pass ProcessingContext through from SnapshottingSourcingHandler
  to StoreBackedSnapshotter to SnapshotStore
- Update InMemorySnapshotStore and AxonServerSnapshotStore
  implementations
- Update StoreBackedSnapshotterTest and
  StoreBackedSnapshotterTestSuite
@theoema theoema force-pushed the feature/snapshot-store-processing-context branch from 1e947b6 to 9674ad5 Compare March 21, 2026 17:12
@theoema theoema changed the title Propagate ProcessingContext to SnapshotStore and Snapshotter [#4341] Propagate ProcessingContext to SnapshotStore and Snapshotter Mar 21, 2026
@smcvb smcvb added this to the Release 5.1.1 milestone Mar 23, 2026
@smcvb smcvb added Type: Enhancement Use to signal an issue enhances an already existing feature of the project. Status: Under Discussion Use to signal that the issue in question is being discussed. labels Mar 23, 2026
@smcvb
Copy link
Copy Markdown
Contributor

smcvb commented Mar 23, 2026

I commented this under the issue, but I'll do it here as well:


Moved issue to 5.1.1 with the label under discussion. As John explained, @theoema, there's a chance your suggestion, although perfectly valid when both are kept separate, may no longer be necessary.
Getting a conclusive path forward for snapshotting is paramount for the Framework team, so I expect us to have a conclusion when we release 5.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Under Discussion Use to signal that the issue in question is being discussed. Type: Enhancement Use to signal an issue enhances an already existing feature of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SnapshotStore and Snapshotter should receive ProcessingContext

3 participants