You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Vinokurov (JIRA)" <ji...@apache.org> on 2018/02/08 16:48:00 UTC
[jira] [Commented] (IGNITE-6432) SpringCacheManager#getCacheNames()
is empty
[ https://issues.apache.org/jira/browse/IGNITE-6432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16357200#comment-16357200 ]
Pavel Vinokurov commented on IGNITE-6432:
-----------------------------------------
Not a bug.
Execution of cacheManager.getCache("refdata.labelType") instantiates new cache.After that the cache could be returned via cacheManager.getCacheNames().
The ConcurrentMapCacheManager has same behavior with dynamic flag set to true.
> SpringCacheManager#getCacheNames() is empty
> -------------------------------------------
>
> Key: IGNITE-6432
> URL: https://issues.apache.org/jira/browse/IGNITE-6432
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Valeri Chibaev
> Priority: Major
>
> Application ignite started with org.apache.ignite.IgniteSpringBean, then SpringCacheManager created
> {code}
> <bean id="ignite-config" class="org.apache.ignite.configuration.IgniteConfiguration" p:igniteInstanceName="ignite-grid">
> <property name="cacheConfiguration">
> <list>
> <bean class="org.apache.ignite.configuration.CacheConfiguration" p:name="refdata.labelType" />
> </list>
> </property>
> </bean>
> <bean id="ignite" class="org.apache.ignite.IgniteSpringBean" p:configuration-ref="ignite-config" />
> <bean id="cacheManager" class="org.apache.ignite.cache.spring.SpringCacheManager" depends-on="ignite" p:igniteInstanceName="ignite-grid" />
> {code}
> If I'll check cacheManager.getCacheNames() - it is empty.
> But if I check cacheManager.getCache("refdata.labelType") metrics and repeat call cacheManager.getCacheNames() - it is not empty.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)