-
Notifications
You must be signed in to change notification settings - Fork 219
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
Creation of thing's policy is atomic with creation the of thing itself #1581
Merged
thjaeckle
merged 2 commits into
eclipse-ditto:master
from
bosch-io:feature/atomic-thing-create
Mar 7, 2023
Merged
Creation of thing's policy is atomic with creation the of thing itself #1581
thjaeckle
merged 2 commits into
eclipse-ditto:master
from
bosch-io:feature/atomic-thing-create
Mar 7, 2023
Conversation
This file contains 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
@thjaeckle can you take a look when you can please. |
Signed-off-by: Stanchev Aleksandar <aleksandar.stanchev@bosch.io> Signed-off-by: Stanchev Aleksandar <aleksandar.stanchev@bosch.io>
alstanchev
force-pushed
the
feature/atomic-thing-create
branch
from
February 22, 2023 08:42
51a0043
to
77b1c03
Compare
@alstanchev I will take a look soon. |
thjaeckle
reviewed
Feb 22, 2023
...in/java/org/eclipse/ditto/internal/utils/persistentactors/AbstractPersistenceSupervisor.java
Show resolved
Hide resolved
thjaeckle
reviewed
Feb 22, 2023
...ervice/src/main/java/org/eclipse/ditto/things/service/enforcement/RollbackCreatedPolicy.java
Outdated
Show resolved
Hide resolved
thjaeckle
reviewed
Feb 22, 2023
...ervice/src/main/java/org/eclipse/ditto/things/service/enforcement/RollbackCreatedPolicy.java
Outdated
Show resolved
Hide resolved
thjaeckle
reviewed
Feb 22, 2023
...ervice/src/main/java/org/eclipse/ditto/things/service/enforcement/RollbackCreatedPolicy.java
Outdated
Show resolved
Hide resolved
thjaeckle
reviewed
Feb 22, 2023
...ervice/src/main/java/org/eclipse/ditto/things/service/enforcement/RollbackCreatedPolicy.java
Outdated
Show resolved
Hide resolved
thjaeckle
reviewed
Feb 22, 2023
...ervice/src/main/java/org/eclipse/ditto/things/service/enforcement/RollbackCreatedPolicy.java
Outdated
Show resolved
Hide resolved
thjaeckle
reviewed
Feb 22, 2023
...s/service/src/main/java/org/eclipse/ditto/things/service/enforcement/ThingPolicyCreated.java
Outdated
Show resolved
Hide resolved
thjaeckle
reviewed
Feb 22, 2023
...s/service/src/main/java/org/eclipse/ditto/things/service/enforcement/ThingPolicyCreated.java
Outdated
Show resolved
Hide resolved
thjaeckle
reviewed
Feb 22, 2023
.../src/main/java/org/eclipse/ditto/things/service/persistence/actors/ThingSupervisorActor.java
Outdated
Show resolved
Hide resolved
thjaeckle
reviewed
Feb 22, 2023
.../src/main/java/org/eclipse/ditto/things/service/persistence/actors/ThingSupervisorActor.java
Outdated
Show resolved
Hide resolved
thjaeckle
requested changes
Feb 22, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a first round of review comments.
.../src/main/java/org/eclipse/ditto/things/service/persistence/actors/ThingSupervisorActor.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/eclipse/ditto/things/service/persistence/actors/ThingSupervisorActor.java
Show resolved
Hide resolved
Signed-off-by: Stanchev Aleksandar <aleksandar.stanchev@bosch.io>
alstanchev
force-pushed
the
feature/atomic-thing-create
branch
from
March 7, 2023 11:43
01737fb
to
594ac98
Compare
thjaeckle
approved these changes
Mar 7, 2023
This PR adds atomic behaviour to the creation of thing and its policy.
In the rare case of failing to create a thing, its policy will be rolled back (deleted) in order to not fail create retry.