Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing a very large number of saga audit snapshots with ID 00000000-0000-0000-0000-000000000000 can cause InvalidOperationException error #3713

Open
ramonsmits opened this issue Sep 21, 2023 · 1 comment
Labels

Comments

@ramonsmits
Copy link
Member

ramonsmits commented Sep 21, 2023

Describe the bug

Endpoints that emit saga snapshots with incorrect sagas can emit snapshots with ID 00000000-0000-0000-0000-000000000000. Saga audit will store these without issues which eventually can result in:

Failed to execute reduce function on page #16445 (count: 90) Branch of 'SagaDetailsIndex' index. The relevant reduce result is going to be removed from the index as it would be incorrect due to encountered errors (reduce key hash: 18127671079156472777) Exception: System.InvalidOperationException: Tried to allocate 1.293 GBytes, which exceeds maximum allocation size of 1 GBytes

Solutions suggestion

  1. Discard 00000000-0000-0000-0000-000000000000 snapshots with a warning message that developers should ensure their saga instances have a correct saga id

Related to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants