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

Sergey Chugunov edited comment on IGNITE-5202 at 6/29/17 9:57 AM:
------------------------------------------------------------------

I lowered priority of the bug to Minor because it turned out that there were 
some flaws in cache configuration logging causing incorrect messages to appear 
in logs.
MemoryPolicy functionality is fine and works as expected.


was (Author: sergey-chugunov):
I lowered priority of the bug to Minor because it turned out that there were 
some flaws in cache configuration logging caused incorrect messages to appear 
in logs.
MemoryPolicy functionality is fine and works as expected.

> Default mem policy name is not changed after setting defaultMemoryPolicyName 
> property
> -------------------------------------------------------------------------------------
>
>                 Key: IGNITE-5202
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5202
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Ksenia Rybakova
>            Assignee: Sergey Chugunov
>            Priority: Minor
>             Fix For: 2.1
>
>
> Default mem policy name is not changed after setting defaultMemoryPolicyName 
> property.
> Config:
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="
>     http://www.springframework.org/schema/beans 
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd";>
> <import resource="ignite-base-load-config.xml"/>
> <bean id="grid.cfg" 
> class="org.apache.ignite.configuration.IgniteConfiguration" 
> parent="base-ignite.cfg">
> <property name="cacheConfiguration">
>   <list>
>     <ref bean="atomic-part" />
>     ...
>   </list>
> </property>
> <property name="memoryConfiguration">
>   <bean class="org.apache.ignite.configuration.MemoryConfiguration" 
> parent="base-mem.cfg">
>     <property name="defaultMemoryPolicyName" value="default2"/>
>     <property name="SystemCacheInitialSize" value="#{50L * 1024 * 1024}"/>
>   </bean>
> </property>
> </bean>
> </beans>
> {noformat}
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="
>         http://www.springframework.org/schema/beans 
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd";>
>     <bean id="base-ignite.cfg" 
> class="org.apache.ignite.configuration.IgniteConfiguration" abstract="true">
>     ...
>     </bean>
>     <bean name="base-mem.cfg" 
> class="org.apache.ignite.configuration.MemoryConfiguration" abstract="true">
>        ...
>        <property name="memoryPolicies">
>            <list>
>                ...
>                <bean 
> class="org.apache.ignite.configuration.MemoryPolicyConfiguration">
>                    <property name="name" value="default2"/>
>                </bean>
>          </list>
>      </property>
>    </bean>
>    <bean name="atomic-part" 
> class="org.apache.ignite.configuration.CacheConfiguration">
>         <property name="name" value="atomic-part"/>
>         <property name="cacheMode" value="PARTITIONED"/>
>         <property name="atomicityMode" value="ATOMIC"/>
>     </bean>
>    ...
> </beans>
> {noformat}
> According to this config default memory policy should be "default2", but it 
> remains "default" (while SystemCacheInitialSize was changed successfully to 
> 50Mb as it's set in config). 
> {noformat}
> [12:48:12,226][INFO ][main][IgniteKernal] System cache's MemoryPolicy size is 
> configured to 50 MB. Use MemoryConfiguration.systemCacheMemorySize property 
> to change the setting.
> [12:48:12,226][INFO ][main][IgniteKernal] Configured caches [in 'default' 
> memoryPolicy: ['ignite-sys-cache', 'ignite-atomics-sys-cache', 'atomic-part', 
> 'atomic-rplc', 'atomic-part-fat-values', 'atomic-part-onheap-evict-fifo', 
> 'atomic-rplc-onheap-evict-lru', 'tx-part', 'tx-rplc', 'tx-part-fat-values', 
> 'compute', 'tx-part-onheap-evict-lru', 'tx-rplc-onheap-evict-fifo', 
> 'atomic-index', 'query', 'orgCache']]
> {noformat}
> Also it would be nice to have default policy name instead of "null"  in logs 
> when printing caches info:
> {noformat}
> <12:48:12><main><yardstick> Cache configured with the following parameters: 
> CacheConfiguration [name=atomic-part, memPlcName=null, 
> storeConcurrentLoadAllThreshold=5, ...
> {noformat}
> {noformat}
> [12:48:13,239][INFO ][main][GridCacheProcessor] Started cache 
> [name=atomic-part, memoryPolicyName=null, mode=PARTITIONED]
> {noformat}



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

Reply via email to