reschke commented on code in PR #173: URL: https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/173#discussion_r2059861724
########## src/main/java/org/apache/sling/resourceresolver/impl/mapping/AliasHandler.java: ########## @@ -130,31 +132,30 @@ protected boolean initializeAliases() { } else if (!conflictingAliases.isEmpty()) { log.warn("There are {} conflicting aliases: {}", conflictingAliases.size(), conflictingAliases); } + if (invalidAliases.size() >= MAX_REPORT_DEFUNCT_ALIASES) { log.warn("There are {} invalid aliases; excerpt: {}", invalidAliases.size(), invalidAliases); } else if (!invalidAliases.isEmpty()) { log.warn("There are {} invalid aliases: {}", invalidAliases.size(), invalidAliases); } } catch (final Exception e) { - + this.aliasMapsMap = new ConcurrentHashMap<>(); logDisableAliasOptimization(e); - - // disable optimize alias resolution - isOptimizeAliasResolutionEnabled = false; } } doUpdateConfiguration.run(); sendChangeEvent.run(); - - return isOptimizeAliasResolutionEnabled; - } finally { this.initializing.unlock(); } } + boolean usesCache() { Review Comment: we could rename "mapIsInitialized" to "cacheIsInitialized". WDYT? -- 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