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

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

Pavel Konstantinov created IGNITE-7041:
------------------------------------------

             Summary: 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)