Skip to content

Commit 4bb0be0

Browse files
authored
IGNITE-24099 Remove SIZES_VALIDATION_AVAILABLE_SINCE (#11808)
1 parent b7c6798 commit 4bb0be0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtPartitionsStateValidator.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import java.util.TreeMap;
2828
import java.util.UUID;
2929
import org.apache.ignite.IgniteCheckedException;
30-
import org.apache.ignite.cluster.ClusterNode;
3130
import org.apache.ignite.events.DiscoveryEvent;
3231
import org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion;
3332
import org.apache.ignite.internal.processors.cache.GridCacheSharedContext;
@@ -36,7 +35,6 @@
3635
import org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsSingleMessage;
3736
import org.apache.ignite.internal.util.lang.IgnitePair;
3837
import org.apache.ignite.internal.util.typedef.internal.SB;
39-
import org.apache.ignite.lang.IgniteProductVersion;
4038
import org.jetbrains.annotations.Nullable;
4139

4240
import static org.apache.ignite.events.EventType.EVT_NODE_JOINED;
@@ -46,9 +44,6 @@
4644
* process.
4745
*/
4846
public class GridDhtPartitionsStateValidator {
49-
/** Version since node is able to send cache sizes in {@link GridDhtPartitionsSingleMessage}. */
50-
private static final IgniteProductVersion SIZES_VALIDATION_AVAILABLE_SINCE = IgniteProductVersion.fromString("2.5.0");
51-
5247
/** Cache shared context. */
5348
private final GridCacheSharedContext<?, ?> cctx;
5449

@@ -91,13 +86,6 @@ public void validatePartitionCountersAndSizes(
9186
Map<Integer, Map<UUID, Long>> resUpdCnt = validatePartitionsUpdateCounters(top, messages, ignoringNodes);
9287
Map<Integer, Map<UUID, Long>> resSize = Collections.emptyMap();
9388

94-
// For sizes validation ignore also nodes which are not able to send cache sizes.
95-
for (UUID id : messages.keySet()) {
96-
ClusterNode node = cctx.discovery().node(id);
97-
if (node != null && node.version().compareTo(SIZES_VALIDATION_AVAILABLE_SINCE) < 0)
98-
ignoringNodes.add(id);
99-
}
100-
10189
// Validate cache sizes.
10290
resSize = validatePartitionsSizes(top, messages, ignoringNodes);
10391

0 commit comments

Comments
 (0)