Adding rebuild projection bug on MultiStreamProjections with Services.#3898
Merged
jeremydmiller merged 2 commits intoJasperFx:masterfrom Aug 8, 2025
Merged
Adding rebuild projection bug on MultiStreamProjections with Services.#3898jeremydmiller merged 2 commits intoJasperFx:masterfrom
jeremydmiller merged 2 commits intoJasperFx:masterfrom
Conversation
Contributor
Author
|
It actually happens on the single stream projection too when trying to rebuild after. |
Contributor
Author
|
I am able to get it running using the below change to AggregateRunner.cs (line: 173). Assuming im not missing some other detail. case ActionType.Store:
cache.Store(slice.Id, snapshot!);
storage.Store(snapshot!); // <-- this should be used
storage.StoreProjection(snapshot!, lastEvent, Projection.Scope); <-- this should not be used.
break; |
Member
|
Your test is a single stream projection, but I think the issue is systematic for all aggregate projections anyway |
Contributor
Author
|
Oh sorry about that. Must have forgot to switch the base class.. But yes seems to be both. Thanks for taking a look! |
Member
|
The fix is coming up later today w/ changes in JasperFx.Events |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Getting the following error when trying to rebuild a projection that has been add via AddProjectionWithServices, and a MultiStreamProjection.
To Reproduce run the "use_multistream_projection_as_scoped_and_inline_on_martenStore" test.