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

Complete synchronized storage session before storing outbox data #191

Merged
merged 3 commits into from
Apr 28, 2023

Conversation

timbussmann
Copy link
Contributor

@timbussmann timbussmann commented Apr 28, 2023

Fixes #194

This is more aligned with Core's behavior in the incoming pipeline, where the session is completed in the LoadHandlersConnector while the outbox Store operations happens in the TransportReceiveToPhysicalMessageConnector afterwards.

Copy link
Member

@SzymonPobiega SzymonPobiega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that the synchronized storage session is a wrapper around the outbox transaction this should be fine. Completing it should not cause any DB commits 👍

@danielmarbach danielmarbach enabled auto-merge (squash) April 28, 2023 12:53
@danielmarbach danielmarbach merged commit c1f87c2 into main Apr 28, 2023
@danielmarbach danielmarbach deleted the fix-sync-session-completion branch April 28, 2023 12:55
timbussmann added a commit that referenced this pull request May 1, 2023
* Complete synchronized storage session before storing outbox data (#191)

* Fix packages not uploading on CI runs

* update testing references
timbussmann added a commit that referenced this pull request May 1, 2023
* add test

* complete session before storing outbox operations

* Apply suggestions from code review

---------

Co-authored-by: Daniel Marbach <daniel.marbach@openplace.net>
danielmarbach added a commit that referenced this pull request May 1, 2023
* Complete synchronized storage session before storing outbox data (#191)

* add test

* complete session before storing outbox operations

* Apply suggestions from code review

---------

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

* Fix packages not uploading on CI runs

* Acceptance test to verify core vs transactional session behavior (#193)

* update testing packages

---------

Co-authored-by: Daniel Marbach <daniel.marbach@openplace.net>
Co-authored-by: David Boike <david.boike@gmail.com>
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.

ICompletableSynchronizedStorageSession is completed after storing Outbox messages
3 participants