/** * @param blt Baseline Topology. */ public static BaselineTopologyHistoryItem fromBaseline(BaselineTopology blt) { if (blt == null) return null; List<Long> fullActivationHistory = new ArrayList<>(blt.branchingHistory().size()); fullActivationHistory.addAll(blt.branchingHistory()); return new BaselineTopologyHistoryItem(blt.id(), U.arrayList(blt.consistentIds()), fullActivationHistory); }
/** * Verifies that neither BaselineTopology nor BaselineTopologyHistory are changed when cluster is deactivated. */ @Test public void testBaselineTopologyRemainsTheSameOnClusterDeactivation() throws Exception { startGrids(2); IgniteEx srv = grid(0); srv.cluster().active(true); awaitPartitionMapExchange(); assertTrue(srv.cluster().active()); srv.cluster().active(false); BaselineTopology blt = getBaselineTopology(srv); BaselineTopologyHistory bltHist = getBaselineTopologyHistory(srv); assertEquals(0, blt.id()); assertEquals(2, blt.consistentIds().size()); assertEquals(1, blt.branchingHistory().size()); assertEquals(0, bltHist.history().size()); }
+ node.consistentId() + ") is not compatible with BaselineTopology in the cluster." + " Branching history of cluster BlT (" + clusterBlt.branchingHistory() + ") doesn't contain branching point hash of joining node BlT (" + joiningNodeBlt.branchingPointHash()
/** * @param blt Baseline Topology. */ public static BaselineTopologyHistoryItem fromBaseline(BaselineTopology blt) { if (blt == null) return null; List<Long> fullActivationHistory = new ArrayList<>(blt.branchingHistory().size()); fullActivationHistory.addAll(blt.branchingHistory()); return new BaselineTopologyHistoryItem(blt.id(), U.arrayList(blt.consistentIds()), fullActivationHistory); }
+ node.consistentId() + ") is not compatible with BaselineTopology in the cluster." + " Branching history of cluster BlT (" + clusterBlt.branchingHistory() + ") doesn't contain branching point hash of joining node BlT (" + joiningNodeBlt.branchingPointHash()