[midPoint-git] [Evolveum/midpoint] c14f4c: Make sequence reclaiming more safe
mederly
noreply at github.com
Thu Oct 15 12:43:00 CEST 2020
Branch: refs/heads/master
Home: https://github.com/Evolveum/midpoint
Commit: c14f4cfa9c47351fbca838393c1b936651acbb80
https://github.com/Evolveum/midpoint/commit/c14f4cfa9c47351fbca838393c1b936651acbb80
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2020-10-15 (Thu, 15 Oct 2020)
Changed paths:
M infra/schema/src/main/java/com/evolveum/midpoint/schema/ObjectDeltaOperation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/ChangeExecutor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/Clockwork.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensElementContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/util/ModelImplUtils.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestStrangeCases.java
A model/model-intest/src/test/resources/strange/archetype-external-user.xml
A model/model-intest/src/test/resources/strange/resource-dummy-no-create.xml
A model/model-intest/src/test/resources/strange/role-no-create.xml
A model/model-intest/src/test/resources/strange/sequence-external-user.xml
M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/SqlRepositoryServiceImpl.java
M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/helpers/SequenceHelper.java
Log Message:
-----------
Make sequence reclaiming more safe
When clockwork exception is present, we now check if there were any
deltas executed before reclaiming values of the sequences.
This is to avoid situations where an exception occurs after sequence
value is written to the focus, so reclaiming the value leads
to inconsistencies.
Related to MID-6455.
More information about the midPoint-svn
mailing list