sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (SLING-7544) Make optimized alias lookup non-blocking
Date Wed, 21 Mar 2018 15:06:00 GMT


ASF GitHub Bot commented on SLING-7544:

DominikSuess commented on a change in pull request #5: SLING-7544 - improving optimized alias
lookup to not block during int…

 File path: src/test/java/org/apache/sling/resourceresolver/impl/mapping/
 @@ -168,6 +172,8 @@ public void test_simple_alias_support() {
+        while(!mapEntries.isAliasMapInitialized()){}
 Review comment:
   @rombert  - I'll be adding timeout to the Test annotation - this is really kind of a test
hack  to wait for this to complete. I can't see any use case for waiting for the alias map
in reality so I'm a bit hesitant to add logic to the MapEntries class just to trigger some
waiting test. I'll be checking if there is some mockito helper to watch out for a certain
condition to change.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Make optimized alias lookup non-blocking
> ----------------------------------------
>                 Key: SLING-7544
>                 URL:
>             Project: Sling
>          Issue Type: Improvement
>          Components: ResourceResolver
>    Affects Versions: Resource Resolver 1.5.36
>            Reporter: Dominik Süß
>            Priority: Major
> The implementation of optimized alias lookup as introduced with SLING-2521 blocks CommonResourceResolver activation
while loading aliases to fillup the aliasmap. In case a corresponding index is not present
yet this can lead to full tree traversal while indexing is doing the same in the background.
> The proposed improvements are:
> * making loading of the aliasmap happen asynchronously
> * only use optimized handling as soon as aliasmap is built
> * wait for non traversal index (optional - forced by default, can be turned off for small

This message was sent by Atlassian JIRA

View raw message