This is an automated email from the ASF dual-hosted git repository.

rpuch pushed a commit to branch ignite-3.1.0
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/ignite-3.1.0 by this push:
     new 4324afdbe2f IGNITE-26737 Deprecate non-colocation mode in 3.1 (#6797)
4324afdbe2f is described below

commit 4324afdbe2f1455f3ea2b9745907b25bc8306400
Author: Roman Puchkovskiy <[email protected]>
AuthorDate: Thu Oct 16 17:14:03 2025 +0400

    IGNITE-26737 Deprecate non-colocation mode in 3.1 (#6797)
---
 .../apache/ignite/internal/lang/IgniteSystemProperties.java   | 11 +++++++++--
 .../org/apache/ignite/internal/app/NodePropertiesImpl.java    |  4 ++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/lang/IgniteSystemProperties.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/lang/IgniteSystemProperties.java
index db5268ece55..55705791c98 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/lang/IgniteSystemProperties.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/lang/IgniteSystemProperties.java
@@ -44,7 +44,12 @@ public final class IgniteSystemProperties {
     public static final String IGNITE_SKIP_STORAGE_UPDATE_IN_BENCHMARK = 
"IGNITE_SKIP_STORAGE_UPDATE_IN_BENCHMARK";
 
     // TODO https://issues.apache.org/jira/browse/IGNITE-22522 Remove this 
feature flag.
-    /** Enables zone based replication (aka colocation) feature. */
+    /**
+     * Enables zone based replication (aka colocation) feature.
+     *
+     * @deprecated Non-colocation mode is planned to be removed in version 3.2.
+     */
+    @Deprecated(since = "3.1", forRemoval = true)
     public static final String COLOCATION_FEATURE_FLAG = 
"IGNITE_ZONE_BASED_REPLICATION";
 
     /**
@@ -60,8 +65,10 @@ public final class IgniteSystemProperties {
      *
      * <p>Do not use in production code (apart from {@link NodeProperties} 
implementations). If a component needs colocation status,
      * it should get one from {@link NodeProperties}.
+     *
+     * @deprecated Non-colocation mode is planned to be removed in version 3.2.
      */
-    @Deprecated
+    @Deprecated(since = "3.1", forRemoval = true)
     public static boolean colocationEnabled() {
         return getBoolean(COLOCATION_FEATURE_FLAG, true);
     }
diff --git 
a/modules/runner/src/main/java/org/apache/ignite/internal/app/NodePropertiesImpl.java
 
b/modules/runner/src/main/java/org/apache/ignite/internal/app/NodePropertiesImpl.java
index db6d0864959..d150c597d1c 100644
--- 
a/modules/runner/src/main/java/org/apache/ignite/internal/app/NodePropertiesImpl.java
+++ 
b/modules/runner/src/main/java/org/apache/ignite/internal/app/NodePropertiesImpl.java
@@ -89,6 +89,10 @@ public class NodePropertiesImpl implements NodeProperties, 
IgniteComponent, Node
                     IgniteSystemProperties.colocationEnabled()
             );
         }
+        if (!colocationEnabled) {
+            LOG.warn("Zone based replication is disabled, this mode is 
deprecated and will be removed in version 3.2. "
+                    + "Consider migrating to zone based replication (which is 
default now).");
+        }
     }
 
     private void saveToVault(boolean enablementStatus) {

Reply via email to