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

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


The following commit(s) were added to refs/heads/main by this push:
     new cbe9424e38d IGNITE-28497 Revert file transfer ErrorGroups removal 
(#7962)
cbe9424e38d is described below

commit cbe9424e38d828337c9ff2032f2c295e4b220de3
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Thu Apr 9 14:38:46 2026 +0300

    IGNITE-28497 Revert file transfer ErrorGroups removal (#7962)
    
    `ErrorGroups` are public API and can't be removed. Mark as deprecated 
instead.
---
 .../main/java/org/apache/ignite/lang/ErrorGroups.java   | 17 +++++++++++++++--
 .../apache/ignite/internal/ApiCompatibilityTest.java    |  3 ---
 modules/platforms/cpp/ignite/common/error_codes.h       |  2 ++
 modules/platforms/dotnet/Apache.Ignite/ErrorCodes.g.cs  |  6 ++++++
 4 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/modules/api/src/main/java/org/apache/ignite/lang/ErrorGroups.java 
b/modules/api/src/main/java/org/apache/ignite/lang/ErrorGroups.java
index c576275646f..1e6e270b01f 100755
--- a/modules/api/src/main/java/org/apache/ignite/lang/ErrorGroups.java
+++ b/modules/api/src/main/java/org/apache/ignite/lang/ErrorGroups.java
@@ -562,8 +562,21 @@ public class ErrorGroups {
         /** Address or port bind error. */
         public static final int BIND_ERR = 
NETWORK_ERR_GROUP.registerErrorCode((short) 2);
 
-        // Error codes 3 (FILE_TRANSFER_ERR) and 4 (FILE_VALIDATION_ERR) were 
removed along with the file-transfer module.
-        // These codes are reserved forever and must not be reused.
+        /**
+         * File transfer error.
+         *
+         * @deprecated This error is no longer used.
+         */
+        @Deprecated
+        public static final int FILE_TRANSFER_ERR = 
NETWORK_ERR_GROUP.registerErrorCode((short) 3);
+
+        /**
+         * File validation error.
+         *
+         * @deprecated This error is no longer used.
+         */
+        @Deprecated
+        public static final int FILE_VALIDATION_ERR = 
NETWORK_ERR_GROUP.registerErrorCode((short) 4);
 
         /** Recipient node has left the physical topology. */
         public static final int RECIPIENT_LEFT_ERR = 
NETWORK_ERR_GROUP.registerErrorCode((short) 5);
diff --git 
a/modules/compatibility-tests/src/test/java/org/apache/ignite/internal/ApiCompatibilityTest.java
 
b/modules/compatibility-tests/src/test/java/org/apache/ignite/internal/ApiCompatibilityTest.java
index 4ccba114b1b..2540048c601 100644
--- 
a/modules/compatibility-tests/src/test/java/org/apache/ignite/internal/ApiCompatibilityTest.java
+++ 
b/modules/compatibility-tests/src/test/java/org/apache/ignite/internal/ApiCompatibilityTest.java
@@ -65,9 +65,6 @@ class ApiCompatibilityTest {
             "3.1.0", List.of(
                     // Erroneous error code remove between versions
                     
"org.apache.ignite.lang.ErrorGroups$DisasterRecovery#RESTART_WITH_CLEAN_UP_ERR",
-                    // Removed along with the file-transfer module
-                    
"org.apache.ignite.lang.ErrorGroups$Network#FILE_TRANSFER_ERR",
-                    
"org.apache.ignite.lang.ErrorGroups$Network#FILE_VALIDATION_ERR",
                     "org.apache.ignite.table.KeyValueView" // 
METHOD_ABSTRACT_NOW_DEFAULT
                             + "#remove(org.apache.ignite.tx.Transaction, 
java.lang.Object, java.lang.Object)",
                     "org.apache.ignite.table.KeyValueView" // 
METHOD_ABSTRACT_NOW_DEFAULT
diff --git a/modules/platforms/cpp/ignite/common/error_codes.h 
b/modules/platforms/cpp/ignite/common/error_codes.h
index c77988469fa..04731dc3b89 100644
--- a/modules/platforms/cpp/ignite/common/error_codes.h
+++ b/modules/platforms/cpp/ignite/common/error_codes.h
@@ -167,6 +167,8 @@ enum class code : underlying_t {
     // Network group. Group code: 11
     UNRESOLVABLE_CONSISTENT_ID = 0xb0001,
     BIND = 0xb0002,
+    FILE_TRANSFER = 0xb0003,
+    FILE_VALIDATION = 0xb0004,
     RECIPIENT_LEFT = 0xb0005,
     ADDRESS_UNRESOLVED = 0xb0006,
     PORT_IN_USE [[deprecated("PORT_IN_USE is deprecated. Use BIND instead.")]] 
= BIND,
diff --git a/modules/platforms/dotnet/Apache.Ignite/ErrorCodes.g.cs 
b/modules/platforms/dotnet/Apache.Ignite/ErrorCodes.g.cs
index 7b2f868e85f..36db50e89bf 100644
--- a/modules/platforms/dotnet/Apache.Ignite/ErrorCodes.g.cs
+++ b/modules/platforms/dotnet/Apache.Ignite/ErrorCodes.g.cs
@@ -483,6 +483,12 @@ namespace Apache.Ignite
             /// <summary> Bind error. </summary>
             public const int Bind = (GroupCode << 16) | (2 & 0xFFFF);
 
+            /// <summary> FileTransfer error. </summary>
+            public const int FileTransfer = (GroupCode << 16) | (3 & 0xFFFF);
+
+            /// <summary> FileValidation error. </summary>
+            public const int FileValidation = (GroupCode << 16) | (4 & 0xFFFF);
+
             /// <summary> RecipientLeft error. </summary>
             public const int RecipientLeft = (GroupCode << 16) | (5 & 0xFFFF);
 

Reply via email to