You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Karl Wright (JIRA)" <ji...@apache.org> on 2019/03/03 13:04:00 UTC

[jira] [Commented] (CONNECTORS-1589) lrusize always null

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

Karl Wright commented on CONNECTORS-1589:
-----------------------------------------

This requires an infrastructure change.

The infrastructure change requires the use of a different constructor when property control over max lru count is desired for a class of cached object.

I've looked at the places where BaseDescription is extended, and in no case did I find a compelling case for using properties to control LRU max size.  So I've left those alone.



> lrusize always null
> -------------------
>
>                 Key: CONNECTORS-1589
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1589
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Framework core
>    Affects Versions: ManifoldCF 2.12
>            Reporter: Cihad Guzel
>            Assignee: Karl Wright
>            Priority: Major
>             Fix For: ManifoldCF 2.13
>
>
> {code:java}
> public abstract class BaseDescription implements ICacheDescription {
> ...
> public int getMaxLRUCount()
>    ...
>           String x = null; // JSKW.getProperty("cache."+objectClassName+".lrusize");
>           if (x == null)
>    ...
> {code}
> Change this condition so that it does not always evaluate to "true"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)