/** * Checks and throw exception if caches was missed. * * @param missingCaches Missing caches. */ private void handlingMissedCaches(Set<String> missingCaches) { if (missingCaches.isEmpty()) return; SB strBuilder = new SB("The following caches do not exist"); if (onlySpecificCaches()) { VisorIdleVerifyDumpTaskArg vdta = (VisorIdleVerifyDumpTaskArg)arg; strBuilder.a(" or do not match to the given filter [").a(vdta.getCacheFilterEnum()).a("]: "); } else strBuilder.a(": "); for (String name : missingCaches) strBuilder.a(name).a(", "); strBuilder.d(strBuilder.length() - 2, strBuilder.length()); throw new IgniteException(strBuilder.toString()); }
/** * Verifies all nodes in current cluster topology support BaselineTopology feature so compatibilityMode flag is * enabled to reset. * * @param discoCache */ private void verifyBaselineTopologySupport(DiscoCache discoCache) { if (discoCache.minimumServerNodeVersion().compareTo(MIN_BLT_SUPPORTING_VER) < 0) { SB sb = new SB("Cluster contains nodes that don't support BaselineTopology: ["); for (ClusterNode cn : discoCache.serverNodes()) { if (cn.version().compareTo(MIN_BLT_SUPPORTING_VER) < 0) sb .a("[") .a(cn.consistentId()) .a(":") .a(cn.version()) .a("], "); } sb.d(sb.length() - 2, sb.length()); throw new IgniteException(sb.a("]").toString()); } }
/** * Verifies all nodes in current cluster topology support BaselineTopology feature * so compatibilityMode flag is enabled to reset. * * @param discoCache */ private void verifyBaselineTopologySupport(DiscoCache discoCache) { if (discoCache.minimumServerNodeVersion().compareTo(MIN_BLT_SUPPORTING_VER) < 0) { SB sb = new SB("Cluster contains nodes that don't support BaselineTopology: ["); for (ClusterNode cn : discoCache.serverNodes()) { if (cn.version().compareTo(MIN_BLT_SUPPORTING_VER) < 0) sb .a("[") .a(cn.consistentId()) .a(":") .a(cn.version()) .a("], "); } sb.d(sb.length() - 2, sb.length()); throw new IgniteException(sb.a("]").toString()); } }