Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Not A Bug
-
1.7
-
None
-
None
Description
Presently, it's impossible to start a new distributed cache dynamically deploying it on server nodes and create a near cache for the distributed cache right after that.
According to the documentation, it was feasible before (refer to the example).
https://apacheignite.readme.io/docs/near-caches
All the time I start the near cache on a client node following the example I get the exception below
Exception in thread "main" javax.cache.CacheException: class org.apache.ignite.IgniteCheckedException: Failed to start near cache (a cache with the same name without near cache is already started) at org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1507) at org.apache.ignite.internal.IgniteKernal.getOrCreateNearCache(IgniteKernal.java:2700) at org.apache.ignite.examples.ExampleNodeStartup.main(ExampleNodeStartup.java:55) 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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start near cache (a cache with the same name without near cache is already started) at org.apache.ignite.internal.IgniteKernal.checkNearCacheStarted(IgniteKernal.java:2713) at org.apache.ignite.internal.IgniteKernal.getOrCreateNearCache(IgniteKernal.java:2695) ... 6 more
Attachments
Issue Links
- is related to
-
IGNITE-15960 Ignite#getOrCreateNearCache appears to be broken?
- Open