This is an automated email from the ASF dual-hosted git repository. amashenkov pushed a commit to branch ignite-20098 in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/ignite-20098 by this push: new 71b6515585 Fix platforms tests. 71b6515585 is described below commit 71b6515585cd07fcb1859fb8953ce61827a64019 Author: amashenkov <andrey.mashen...@gmail.com> AuthorDate: Tue Jan 16 15:30:28 2024 +0300 Fix platforms tests. --- modules/api/src/main/java/org/apache/ignite/lang/ErrorGroups.java | 2 +- modules/platforms/cpp/ignite/common/error_codes.h | 2 +- modules/platforms/cpp/ignite/odbc/common_types.cpp | 4 ---- modules/platforms/dotnet/Apache.Ignite/ErrorCodes.g.cs | 2 +- 4 files changed, 3 insertions(+), 7 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 9e60780bda..0d6deb31fd 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 @@ -420,7 +420,7 @@ public class ErrorGroups { public static final ErrorGroup DISTRIBUTION_ZONES_ERR_GROUP = registerGroup("DISTRZONES", (short) 10); /** Distribution zone is not found. */ - public static final int ZONE_NOT_FOUND_ERR = DISTRIBUTION_ZONES_ERR_GROUP.registerErrorCode((short) 2); + public static final int ZONE_NOT_FOUND_ERR = DISTRIBUTION_ZONES_ERR_GROUP.registerErrorCode((short) 1); } /** Network error group. */ diff --git a/modules/platforms/cpp/ignite/common/error_codes.h b/modules/platforms/cpp/ignite/common/error_codes.h index 589863c1bd..6905d4f846 100644 --- a/modules/platforms/cpp/ignite/common/error_codes.h +++ b/modules/platforms/cpp/ignite/common/error_codes.h @@ -146,7 +146,7 @@ enum class code : underlying_t { STORAGE_REBALANCE = 0x90004, // DistributionZones group. Group code: 10 - ZONE_NOT_FOUND = 0xa0002, + ZONE_NOT_FOUND = 0xa0001, // Network group. Group code: 11 UNRESOLVABLE_CONSISTENT_ID = 0xb0001, diff --git a/modules/platforms/cpp/ignite/odbc/common_types.cpp b/modules/platforms/cpp/ignite/odbc/common_types.cpp index c3a2a0c6e3..69dde4107a 100644 --- a/modules/platforms/cpp/ignite/odbc/common_types.cpp +++ b/modules/platforms/cpp/ignite/odbc/common_types.cpp @@ -229,11 +229,7 @@ sql_state error_code_to_sql_state(error::code code) { return sql_state::SHY000_GENERAL_ERROR; // DistributionZones group. Group code: 10 - case error::code::ZONE_ALREADY_EXISTS: case error::code::ZONE_NOT_FOUND: - case error::code::ZONE_RENAME: - case error::code::ZONE_DROP: - case error::code::ZONE_DEFINITION: return sql_state::SHY000_GENERAL_ERROR; // Network group. Group code: 11 diff --git a/modules/platforms/dotnet/Apache.Ignite/ErrorCodes.g.cs b/modules/platforms/dotnet/Apache.Ignite/ErrorCodes.g.cs index f8a969d700..0901921f13 100644 --- a/modules/platforms/dotnet/Apache.Ignite/ErrorCodes.g.cs +++ b/modules/platforms/dotnet/Apache.Ignite/ErrorCodes.g.cs @@ -361,7 +361,7 @@ namespace Apache.Ignite public const String GroupName = "DISTRZONES"; /// <summary> ZoneNotFound error. </summary> - public const int ZoneNotFound = (GroupCode << 16) | (2 & 0xFFFF); + public const int ZoneNotFound = (GroupCode << 16) | (1 & 0xFFFF); } /// <summary> Network errors. </summary>