You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Konstantinov (JIRA)" <ji...@apache.org> on 2017/11/28 10:37:00 UTC

[jira] [Commented] (IGNITE-7041) Web Console: Incorrect code generation in case if cache has eviction policy and near cache with eviction policy

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

Pavel Konstantinov commented on IGNITE-7041:
--------------------------------------------

Already fixed in issue https://issues.apache.org/jira/browse/IGNITE-6995

> Web Console: Incorrect code generation in case if cache has eviction policy and near cache with eviction policy
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-7041
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7041
>             Project: Ignite
>          Issue Type: Bug
>          Components: wizards
>            Reporter: Pavel Konstantinov
>
> In case if cache has eviction policy and also near cache configuration with eviction policy then generated code contains an error - the same variable is used to define two different eviction policy types
> {code}
>     public static CacheConfiguration cacheDepartmentCache() throws Exception {
>         CacheConfiguration ccfg = new CacheConfiguration();
>         
>         .....
>         LruEvictionPolicy evictionPlc = new LruEvictionPolicy();
>         evictionPlc.setBatchSize(5);
>         evictionPlc.setMaxSize(100);
>         ccfg.setEvictionPolicy(evictionPlc);
>        
>         .........
>         NearCacheConfiguration nearConfiguration = new NearCacheConfiguration();
>         nearConfiguration.setNearStartSize(4545);
>         evictionPlc = new SortedEvictionPolicy();    -  THIS ROW IS INCORRECT!!!!
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)