Ksenia Rybakova created IGNITE-5202:
--------------------------------------- Summary: 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 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="memPolicyCfg_6Gb"/> <property name="initialSize" value="#{100L * 1024 * 1024}"/> <property name="maxSize" value="#{6L * 1024 * 1024 * 1024}"/> </bean> ... <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.3.15#6346) |
Free forum by Nabble | Edit this page |