reschke commented on code in PR #191:
URL: 
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/191#discussion_r2282309738


##########
src/test/java/org/apache/sling/resourceresolver/impl/mapping/AliasMapEntriesTest.java:
##########
@@ -154,6 +162,22 @@ public void tearDown() throws Exception {
         mockCloser.close();
     }
 
+    private void waitForBackgroundInitReady() {

Review Comment:
   Consisteny with Vanity Path test class which I didn't want to touch here
   



##########
src/main/java/org/apache/sling/resourceresolver/impl/mapping/AliasHandler.java:
##########
@@ -129,7 +129,13 @@ protected void initializeAliases() {
             // optimization made in SLING-2521
             if (this.factory.isOptimizeAliasResolutionEnabled()) {
                 AliasInitializer ai = new AliasInitializer();
-                ai.run();
+                if (this.factory.isAliasCacheInitInBackground()) {
+                    this.log.debug("bg init starting");

Review Comment:
   same



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@sling.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to