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 Tupitsyn (JIRA)" <ji...@apache.org> on 2016/08/09 12:32:28 UTC

[jira] [Updated] (IGNITE-3133) Unable to get a reference to a cache inside TX on a node that is filtered out by a node filter

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

Pavel Tupitsyn updated IGNITE-3133:
-----------------------------------
    Fix Version/s:     (was: 1.7)
                   1.8

> Unable to get a reference to a cache inside TX on a node that is filtered out by a node filter
> ----------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-3133
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3133
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.5.0.final
>            Reporter: Denis Magda
>             Fix For: 1.8
>
>         Attachments: CacheNodeFilter.java, CacheNodeFilterExample.java
>
>
> It's impossible to get a reference to a cache (Ignite.cache("name")) inside of a transaction on a node that is filtered out with CacheConfiguration.nodeFilter (doesn't hold cache data). The following exception happens.
> {noformat}
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readExternalizable(OptimizedObjectInputStream.java:527)
> 	... 32 more
> Caused by: java.io.InvalidObjectException: Failed to find cache for name: red_cache
> 	at org.apache.ignite.internal.processors.cache.GridCacheContext.readResolve(GridCacheContext.java:2051)
> 	... 37 more
> Caused by: java.lang.IllegalStateException: Failed to find cache for name: red_cache
> 	at org.apache.ignite.internal.processors.cache.GridCacheContext.readResolve(GridCacheContext.java:2046)
> 	... 37 more
> {noformat}
> To reproduce:
> - start ExampleNodeStartup
> - start attached CacheNodeFilterExample



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