[ 
https://issues.apache.org/jira/browse/JCR-3833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15223071#comment-15223071
 ] 

Takahito Kikuchi commented on JCR-3833:
---------------------------------------

[[email protected]], I mentioned what if the entry is *not* removed, but not 
what if the entry is removed. 

cache.remove at Line 575 in 
[commit|https://github.com/apache/jackrabbit/commit/78700c7aba4be26ec2490ed57d5e91490d405f96#diff-862d706afb4beb0f6e5774986885287f]
 is 
[LRUCache#remove|https://github.com/apache/jackrabbit/blob/78700c7aba4be26ec2490ed57d5e91490d405f96/jackrabbit-data/src/main/java/org/apache/jackrabbit/core/data/LocalCache.java#L468#L478].
 If asyncUploadCache.hasEntry is true due to in-progress of async upload, 
"AsyncUploadCache upload contains file ... Not removing it from LocalCache." 
will be shown, then return null. The entry will not be removed. Thus, 
cache.entrySet().iterator at Line 576 in 
[commit|https://github.com/apache/jackrabbit/commit/78700c7aba4be26ec2490ed57d5e91490d405f96#diff-862d706afb4beb0f6e5774986885287f]
 is not changed since not removed. We have a concern here. This must be the 
cause of endless loop. 

> Compatibility with Java 8
> -------------------------
>
>                 Key: JCR-3833
>                 URL: https://issues.apache.org/jira/browse/JCR-3833
>             Project: Jackrabbit Content Repository
>          Issue Type: Task
>            Reporter: Unico Hommes
>            Assignee: Unico Hommes
>             Fix For: 2.9.1, 2.8.1
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to