You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (Jira)" <ji...@apache.org> on 2023/03/07 10:11:00 UTC
[jira] [Updated] (SLING-11796) The ResourceResolverFactory dependency should be dynamic
[ https://issues.apache.org/jira/browse/SLING-11796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Cotescu updated SLING-11796:
---------------------------------
Description: The {{BundledScriptTracker}} requires the {{ResourceResolverFactory}} to determine servlets for resource types should be added to the servlets hierarchy. However, in a system with a large number of servlets a restart of the {{ResourceResolverFactory}} forces the servlets' reregistration. This is an expensive operation which should happen if really required. Since the tracker only needs the search path information from the {{ResourceResolverFactory}}, this reference should be made dynamic and the tracker should reregister the servlets only in the case the search paths array has changed. (was: The {{BundledScriptTracker}} requires the {{ResourceResolverFactory}} to determine servlets for resource types should be added to the servlets hierarchy. However, in a system with a large number of servlets a restart of the {{ResourceResolverFactory}} forces the servlets' reregistration. This is an expensive operation which should only happen if really required. Since the tracker only needs the search path information from the {{ResourceResolverFactory}}, this reference should be made dynamic and the tracker should only reregister the servlets if a search paths array change has been detected.)
> The ResourceResolverFactory dependency should be dynamic
> --------------------------------------------------------
>
> Key: SLING-11796
> URL: https://issues.apache.org/jira/browse/SLING-11796
> Project: Sling
> Issue Type: Improvement
> Components: Servlets
> Affects Versions: Servlets Resolver 2.9.4
> Reporter: Radu Cotescu
> Priority: Major
> Fix For: Servlets Resolver 2.9.12
>
>
> The {{BundledScriptTracker}} requires the {{ResourceResolverFactory}} to determine servlets for resource types should be added to the servlets hierarchy. However, in a system with a large number of servlets a restart of the {{ResourceResolverFactory}} forces the servlets' reregistration. This is an expensive operation which should happen if really required. Since the tracker only needs the search path information from the {{ResourceResolverFactory}}, this reference should be made dynamic and the tracker should reregister the servlets only in the case the search paths array has changed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)