[ 
https://issues.apache.org/jira/browse/IGNITE-3841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Konstantinov updated IGNITE-3841:
---------------------------------------
    Description: 
Cache configuration > Eviction policy.
Presently we do not check that user can set both 'Max memory size' and 'Max 
size' equal to zero. I think we should show error message in this case because 
such configuration is incorrect - eviction will never happen.

{code}
<bean class="org.apache.ignite.configuration.CacheConfiguration">
            <property name="name" value="offheap-sorted-100"/>
            <property name="cacheMode" value="PARTITIONED"/>
            <property name="atomicityMode" value="ATOMIC"/>
            <property name="offHeapMaxMemory" value="0"/>
            <property name="statisticsEnabled" value="true"/>
            <property name="evictionPolicy">
                <bean 
class="org.apache.ignite.cache.eviction.sorted.SortedEvictionPolicy">
                    <property name="maxSize" value="0"/>
                    <property name="maxMemorySize" value="0"/>
                </bean>
            </property>
        </bean>
{code}

  was:
Cache configuration > Eviction policy.
Presently we do not check that user can set both 'Max memory size' and 'Max 
size' equal to zero. I think we should show error message in this case because 
such configuration is incorrect - eviction will never happen.


> Web console: we need to add eviction policy consistency
> -------------------------------------------------------
>
>                 Key: IGNITE-3841
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3841
>             Project: Ignite
>          Issue Type: Task
>          Components: wizards
>            Reporter: Pavel Konstantinov
>            Assignee: Saikat Maitra
>            Priority: Minor
>             Fix For: 1.8
>
>
> Cache configuration > Eviction policy.
> Presently we do not check that user can set both 'Max memory size' and 'Max 
> size' equal to zero. I think we should show error message in this case 
> because such configuration is incorrect - eviction will never happen.
> {code}
> <bean class="org.apache.ignite.configuration.CacheConfiguration">
>             <property name="name" value="offheap-sorted-100"/>
>             <property name="cacheMode" value="PARTITIONED"/>
>             <property name="atomicityMode" value="ATOMIC"/>
>             <property name="offHeapMaxMemory" value="0"/>
>             <property name="statisticsEnabled" value="true"/>
>             <property name="evictionPolicy">
>                 <bean 
> class="org.apache.ignite.cache.eviction.sorted.SortedEvictionPolicy">
>                     <property name="maxSize" value="0"/>
>                     <property name="maxMemorySize" value="0"/>
>                 </bean>
>             </property>
>         </bean>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to