ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Konstantinov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-7041) Web Console: Incorrect code generation in case if cache has eviction policy and near cache with eviction policy
Date Tue, 28 Nov 2017 10:52:04 GMT

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

Pavel Konstantinov edited comment on IGNITE-7041 at 11/28/17 10:51 AM:
-----------------------------------------------------------------------

Already has a fix in branch https://issues.apache.org/jira/browse/IGNITE-6995


was (Author: pkonstantinov):
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)

Mime
View raw message