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] [Created] (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:36:00 GMT
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)

Mime
View raw message