/** * Partition refresh callback. * For coordinator causes {@link GridDhtPartitionsFullMessage FullMessages} send, * for non coordinator - {@link GridDhtPartitionsSingleMessage SingleMessages} send */ public void refreshPartitions() { refreshPartitions(cctx.cache().cacheGroups()); }
@Override public void applyx(IgniteInternalFuture future) { for (Integer grpId0 : session0.disabledGrps) { CacheGroupContext grp = cctx.cache().cacheGroup(grpId0); if (grp != null) grp.topology().ownMoving(topVer); else if (log.isDebugEnabled()) log.debug("Cache group was destroyed before checkpoint finished, [grpId=" + grpId0 + ']'); } if (log.isDebugEnabled()) log.debug("Refresh partitions due to rebalance finished"); cctx.exchange().refreshPartitions(); } });
log.debug("Refresh partitions due to topology update"); refreshPartitions();
grpToRefresh.stream().map(CacheGroupContext::name).collect(Collectors.toList()) + ']'); cctx.exchange().refreshPartitions(grpToRefresh);
@Override public void applyx(IgniteInternalFuture future) { for (Integer grpId0 : session0.disabledGrps) { CacheGroupContext grp = cctx.cache().cacheGroup(grpId0); assert grp != null; grp.topology().ownMoving(session0.topVer); } cctx.exchange().refreshPartitions(); } });
cctx.exchange().refreshPartitions();