ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Magda (JIRA)" <j...@apache.org>
Subject [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
Date Fri, 13 May 2016 13:24:12 GMT

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

Denis Magda updated IGNITE-3133:
--------------------------------
    Attachment: CacheNodeFilterExample.java
                CacheNodeFilter.java

> 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.7
>
>         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)

Mime
View raw message