Skip to content

Commit

Permalink
Turn off op. exec. recording for more task types
Browse files Browse the repository at this point in the history
(Delete not update shadows and Reindex.)
  • Loading branch information
mederly committed Jan 20, 2021
1 parent 339d298 commit b92272e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
Expand Up @@ -403,8 +403,8 @@
<xsd:annotation>
<xsd:documentation>
<p>
Description of recent operations executed on this object (or related objects, e.g. shadows
in case of a focal object). The number of operations to be kept here is configurable.
Description of recent operations executed on this object (or related objects in special
cases). The number of operations to be kept here is configurable.
</p>
</xsd:documentation>
<xsd:appinfo>
Expand Down
Expand Up @@ -56,7 +56,7 @@ public ObjectIntegrityCheckTaskHandler() {
super("Object integrity check", OperationConstants.CHECK_OBJECT_INTEGRITY);
reportingOptions.setPreserveStatistics(false);
reportingOptions.setLogErrors(false); // we do log errors ourselves
reportingOptions.setSkipWritingOperationExecutionRecords(true);
reportingOptions.setSkipWritingOperationExecutionRecords(true); // because of performance
}

@PostConstruct
Expand Down
Expand Up @@ -58,7 +58,7 @@ public ShadowIntegrityCheckTaskHandler() {
super("Shadow integrity check", OperationConstants.CHECK_SHADOW_INTEGRITY);
reportingOptions.setPreserveStatistics(false);
reportingOptions.setLogErrors(false); // we do log errors ourselves
reportingOptions.setSkipWritingOperationExecutionRecords(true);
reportingOptions.setSkipWritingOperationExecutionRecords(true); // because of performance
}

@PostConstruct
Expand Down
Expand Up @@ -63,6 +63,7 @@ public class DeleteNotUpdatedShadowTaskHandler
public DeleteNotUpdatedShadowTaskHandler() {
super("DeleteNotUpdatedShadow", OperationConstants.DELETE_NOT_UPDATED_SHADOWS);
reportingOptions.setPreserveStatistics(false);
reportingOptions.setSkipWritingOperationExecutionRecords(true); // because the shadows are deleted anyway
}

@PostConstruct
Expand Down
Expand Up @@ -47,6 +47,7 @@ public class ReindexTaskHandler
public ReindexTaskHandler() {
super("Reindex", OperationConstants.REINDEX);
reportingOptions.setPreserveStatistics(false);
reportingOptions.setSkipWritingOperationExecutionRecords(false); // because of performance
}

@PostConstruct
Expand Down
Expand Up @@ -58,7 +58,7 @@ public MultiPropagationTaskHandler() {
super("Provisioning propagation (multi)", OperationConstants.PROVISIONING_PROPAGATION);
reportingOptions.setPreserveStatistics(false);
reportingOptions.setEnableSynchronizationStatistics(false);
reportingOptions.setSkipWritingOperationExecutionRecords(true);
reportingOptions.setSkipWritingOperationExecutionRecords(true); // to avoid resource change (invalidates the caches)
}

@PostConstruct
Expand Down

0 comments on commit b92272e

Please sign in to comment.