Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGNITE-24101 Remove SEPARATE_CACHE_PER_NON_COLLOCATED_SET_SINCE #11810

Merged
merged 3 commits into from
Jan 29, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
import org.apache.ignite.internal.util.typedef.internal.S;
import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.lang.IgnitePredicate;
import org.apache.ignite.lang.IgniteProductVersion;
import org.apache.ignite.spi.systemview.view.datastructures.AtomicLongView;
import org.apache.ignite.spi.systemview.view.datastructures.AtomicReferenceView;
import org.apache.ignite.spi.systemview.view.datastructures.AtomicSequenceView;
Expand Down Expand Up @@ -197,10 +196,6 @@ public final class DataStructuresProcessor extends GridProcessorAdapter implemen
/** */
private static final String SEQUENCES_VIEW_DESC = "Data structure atomic sequences";

/** Non collocated IgniteSet will use separate cache if all nodes in cluster is not older then specified version. */
private static final IgniteProductVersion SEPARATE_CACHE_PER_NON_COLLOCATED_SET_SINCE =
IgniteProductVersion.fromString("2.7.0");

/** Initial capacity. */
private static final int INITIAL_CAPACITY = 10;

Expand Down Expand Up @@ -1775,8 +1770,7 @@ else if (reentrantLock != null) {

final boolean create = cfg != null;
final boolean collocated = isCollocated(cfg);
final boolean separated = !collocated &&
U.isOldestNodeVersionAtLeast(SEPARATE_CACHE_PER_NON_COLLOCATED_SET_SINCE, ctx.grid().cluster().nodes());
final boolean separated = !collocated;

return getCollection(new CX1<GridCacheContext, IgniteSet<T>>() {
@Override public IgniteSet<T> applyx(GridCacheContext cctx) throws IgniteCheckedException {
Expand Down