Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid re-processing of completed projections
The most important change is that we no longer clear synchronizationPolicyDecision for completed projection contexts. The primary motivation was to avoid loading deleted accounts but the real consequences are much greater. At some places (activation processing, assigned construction evaluation) we added skipping when wave does not match and/or context is completed. We also skip Projector.projectProjection if context is completed (the wave check was already in place there). When evaluating dependencies, we (maybe temporarily) relaxed BROKEN/IGNORED check in wasProvisioned method. It was not functional anyway, as synchronizationPolicyDecision was often cleared. Related to MID-6228.
- Loading branch information
Showing
19 changed files
with
189 additions
and
74 deletions.
There are no files selected for viewing
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
19 changes: 19 additions & 0 deletions
19
infra/schema/src/main/java/com/evolveum/midpoint/schema/traces/RepositoryCacheOpNode.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2020 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.schema.traces; | ||
|
||
import com.evolveum.midpoint.prism.PrismContext; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.OperationResultType; | ||
|
||
public class RepositoryCacheOpNode extends RepositoryOpNode { | ||
|
||
public RepositoryCacheOpNode(PrismContext prismContext, | ||
OperationResultType result, OpResultInfo info, OpNode parent, TraceInfo traceInfo) { | ||
super(prismContext, result, info, parent, traceInfo); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
infra/schema/src/main/java/com/evolveum/midpoint/schema/traces/RepositoryOpNode.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2020 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.schema.traces; | ||
|
||
import com.evolveum.midpoint.prism.PrismContext; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.OperationResultType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.RepositoryOperationTraceType; | ||
|
||
/** | ||
* General repository op (raw/cached, read/update, ...). | ||
*/ | ||
public class RepositoryOpNode extends OpNode { | ||
|
||
private final RepositoryOperationTraceType trace; | ||
|
||
public RepositoryOpNode(PrismContext prismContext, OperationResultType result, | ||
OpResultInfo info, OpNode parent, TraceInfo traceInfo) { | ||
super(prismContext, result, info, parent, traceInfo); | ||
trace = getTrace(RepositoryOperationTraceType.class); | ||
} | ||
|
||
public RepositoryOperationTraceType getTrace() { | ||
return trace; | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.