-
Notifications
You must be signed in to change notification settings - Fork 871
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
Object API does not propagate save over Set fields #8272
Comments
diegomtassis
changed the title
Obpect API does not propagate save over Set fields
Object API does not propagate save over Set fields
May 17, 2018
I pushed a fix for this issue, it will be released with v 3.0.2 Thanks Luigi |
Thanks @luigidellaquila. |
luigidellaquila
added a commit
that referenced
this issue
May 21, 2018
Yes, I think so, let me check |
luigidellaquila
added a commit
that referenced
this issue
May 21, 2018
luigidellaquila
added a commit
that referenced
this issue
May 21, 2018
I just cherry-picked and pushed the fix to 2.2.x Thanks Luigi |
Thanks @luigidellaquila. |
This was referenced Jun 30, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OrientDB Version: 2.2.35
Java Version: 8
OS: Windows, Linux
Expected behavior
A model where an entity is related to another entity by a one-to-many relationship implemented using a Set.
Scenario:
Actual behavior
If the first save and the latter retrieve/save are executed using different connections (typical scenario in a multi thread application) the save operation is not propagated, and retrievedBar stays marked as dirty.
Steps to reproduce
I've created an integration test reproducing it.
PropagateSaveOnSetFieldIT
3 scenarios:
Something I have noticed while debugging is that when a single connection is used, when retrieved, the aggregate root's internal dirtyManager is not null (actually the root and the child share the same dirtyManager). In the scenario using different connections, when retrieved, the dirtyManager in the root entity is null.
The text was updated successfully, but these errors were encountered: