Skip to content

Commit 820b40f

Browse files
authored
IGNITE-24882 Remove unneeded public error code (#5461)
1 parent 2efdde9 commit 820b40f

File tree

5 files changed

+3
-10
lines changed

5 files changed

+3
-10
lines changed

modules/api/src/main/java/org/apache/ignite/lang/ErrorGroups.java

-3
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,6 @@ public static class Network {
500500

501501
/** Could not resolve address. */
502502
public static final int ADDRESS_UNRESOLVED_ERR = NETWORK_ERR_GROUP.registerErrorCode((short) 6);
503-
504-
/** Duplicate consistent ID. */
505-
public static final int DUPLICATE_CONSISTENT_ID_ERR = NETWORK_ERR_GROUP.registerErrorCode((short) 7);
506503
}
507504

508505
/** Node configuration error group. */

modules/network-api/src/main/java/org/apache/ignite/internal/network/DuplicateConsistentIdException.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717

1818
package org.apache.ignite.internal.network;
1919

20+
import static org.apache.ignite.lang.ErrorGroups.Common.INTERNAL_ERR;
21+
2022
import org.apache.ignite.internal.lang.IgniteInternalException;
21-
import org.apache.ignite.lang.ErrorGroups.Network;
2223

2324
/**
2425
* Thrown when a send by consistent ID fails because there's a duplicate consistent ID in the physical topology.
2526
*/
2627
public class DuplicateConsistentIdException extends IgniteInternalException {
2728
public DuplicateConsistentIdException(String msg) {
28-
super(Network.DUPLICATE_CONSISTENT_ID_ERR, msg);
29+
super(INTERNAL_ERR, msg);
2930
}
3031
}

modules/platforms/cpp/ignite/common/error_codes.h

-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ enum class code : underlying_t {
157157
FILE_VALIDATION = 0xb0004,
158158
RECIPIENT_LEFT = 0xb0005,
159159
ADDRESS_UNRESOLVED = 0xb0006,
160-
DUPLICATE_CONSISTENT_ID = 0xb0007,
161160

162161
// NodeConfiguration group. Group code: 12
163162
CONFIG_READ = 0xc0001,

modules/platforms/cpp/ignite/odbc/common_types.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ sql_state error_code_to_sql_state(error::code code) {
234234
case error::code::FILE_VALIDATION:
235235
case error::code::RECIPIENT_LEFT:
236236
case error::code::ADDRESS_UNRESOLVED:
237-
case error::code::DUPLICATE_CONSISTENT_ID:
238237
return sql_state::S08001_CANNOT_CONNECT;
239238

240239
// NodeConfiguration group. Group code: 12

modules/platforms/dotnet/Apache.Ignite/ErrorCodes.g.cs

-3
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,6 @@ public static class Network
456456

457457
/// <summary> AddressUnresolved error. </summary>
458458
public const int AddressUnresolved = (GroupCode << 16) | (6 & 0xFFFF);
459-
460-
/// <summary> DuplicateConsistentId error. </summary>
461-
public const int DuplicateConsistentId = (GroupCode << 16) | (7 & 0xFFFF);
462459
}
463460

464461
/// <summary> NodeConfiguration errors. </summary>

0 commit comments

Comments
 (0)