[
https://issues.apache.org/jira/browse/OAK-11810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joerg Hoh updated OAK-11810:
----------------------------
Description:
This is a variation of OAK-11782, which is simpler to implement.
In the UserImporter the {{userMonitor}} is resolved already at init
([Github|https://github.com/apache/jackrabbit-oak/blob/06b7ff2278cdfe432c2ed7cfcdb17f195fca9722/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserImporter.java#L210-L215]);
but the UserImporter is instantiated many times by the ImporterImpl, but used
only rarely (when importing users).
For that reason the initialization of the UserMonitor object should be delayed,
and only done when it's needed.
was:
This is a variation of OAK-11782, which is simpler to implement.
In the UserImporter the {{userMonitor}} is resolved already at init
([Github|https://github.com/apache/jackrabbit-oak/blob/06b7ff2278cdfe432c2ed7cfcdb17f195fca9722/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserImporter.java#L210-L215]);
but the UserImporter is instantiated many times by the ImporterImpl, it's
barely used (only when importing users).
For that reason the initialization of the UserMonitor object should be delayed,
and only done when it's needed.
> UserImporter: Resolve the UserMonitor lazily
> --------------------------------------------
>
> Key: OAK-11810
> URL: https://issues.apache.org/jira/browse/OAK-11810
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.82.0
> Reporter: Joerg Hoh
> Priority: Major
>
> This is a variation of OAK-11782, which is simpler to implement.
> In the UserImporter the {{userMonitor}} is resolved already at init
> ([Github|https://github.com/apache/jackrabbit-oak/blob/06b7ff2278cdfe432c2ed7cfcdb17f195fca9722/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserImporter.java#L210-L215]);
> but the UserImporter is instantiated many times by the ImporterImpl, but
> used only rarely (when importing users).
> For that reason the initialization of the UserMonitor object should be
> delayed, and only done when it's needed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)