Ignore non user caches when automatically choosing a queryable cache inside JDBC driver
@@ -1668,6 +1668,9 @@ public class GridCacheProcessor extends GridProcessorAdapter {
public IgniteCacheProxy<?, ?> getOrStartPublicCache(boolean start, boolean inclLoc) throws IgniteCheckedException {
// Try to find started cache first.
for (Map.Entry<String, GridCacheAdapter<?, ?>> e : caches.entrySet()) {
+ if (!e.getValue().context().userCache())
+ continue;
+
CacheConfiguration ccfg = e.getValue().configuration();
String cacheName = ccfg.getName();
@@ -1680,6 +1683,9 @@ public class GridCacheProcessor extends GridProcessorAdapter {
for (Map.Entry<String, DynamicCacheDescriptor> e : cachesInfo.registeredCaches().entrySet()) {
DynamicCacheDescriptor desc = e.getValue();
+ if (!desc.cacheType().userCache())
+ continue;
+
CacheConfiguration ccfg = desc.cacheConfiguration();
if (ccfg.getCacheMode() != LOCAL) {
