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

Persistence Tests - Make sure stale records are modified before save #6603

Merged
merged 2 commits into from
Nov 24, 2022

Conversation

mauroservienti
Copy link
Member

@mauroservienti mauroservienti commented Nov 24, 2022

This PR aligns

  • When_updating_saga_concurrently_on_same_thread
  • When_updating_saga_concurrently_twice_on_the_same_thread

with When_updating_saga_concurrently_on_different_thread which already does update a property of the saga.

It is required to update something on the saga otherwise persisters like RavenDB that can discover whether something has change or not will simply not execute any side effect because the document hasn't been updated which then also doesn't trigger a concurrency conflict.

Backported to

Co-Authored-By: Daniel Marbach <daniel.marbach@openplace.net>
@danielmarbach
Copy link
Contributor

I updated the description of the PR

@danielmarbach danielmarbach changed the title Make sure stale records are modified before save Persistence Tests - Make sure stale records are modified before save Nov 24, 2022
@mauroservienti mauroservienti merged commit 5f157e5 into master Nov 24, 2022
@mauroservienti mauroservienti deleted the fix-persistence-tests branch November 24, 2022 15:40
mauroservienti added a commit that referenced this pull request Nov 24, 2022
…6603)

* Make sure stale records are modified before save

Co-Authored-By: Daniel Marbach <daniel.marbach@openplace.net>

* Update the stale record outside the Assert

Co-authored-by: Daniel Marbach <daniel.marbach@openplace.net>
mauroservienti added a commit that referenced this pull request Nov 24, 2022
…6603)

* Make sure stale records are modified before save

Co-Authored-By: Daniel Marbach <daniel.marbach@openplace.net>

* Update the stale record outside the Assert

Co-authored-by: Daniel Marbach <daniel.marbach@openplace.net>
danielmarbach added a commit that referenced this pull request Nov 24, 2022
…6603) (#6604)

* Make sure stale records are modified before save

Co-Authored-By: Daniel Marbach <daniel.marbach@openplace.net>

* Update the stale record outside the Assert

Co-authored-by: Daniel Marbach <daniel.marbach@openplace.net>

Co-authored-by: Daniel Marbach <daniel.marbach@openplace.net>
danielmarbach added a commit that referenced this pull request Nov 24, 2022
…6603) (#6605)

* Make sure stale records are modified before save

Co-Authored-By: Daniel Marbach <daniel.marbach@openplace.net>

* Update the stale record outside the Assert

Co-authored-by: Daniel Marbach <daniel.marbach@openplace.net>

Co-authored-by: Daniel Marbach <daniel.marbach@openplace.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants