File tree 5 files changed +3
-10
lines changed
api/src/main/java/org/apache/ignite/lang
network-api/src/main/java/org/apache/ignite/internal/network
5 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -500,9 +500,6 @@ public static class Network {
500
500
501
501
/** Could not resolve address. */
502
502
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 );
506
503
}
507
504
508
505
/** Node configuration error group. */
Original file line number Diff line number Diff line change 17
17
18
18
package org .apache .ignite .internal .network ;
19
19
20
+ import static org .apache .ignite .lang .ErrorGroups .Common .INTERNAL_ERR ;
21
+
20
22
import org .apache .ignite .internal .lang .IgniteInternalException ;
21
- import org .apache .ignite .lang .ErrorGroups .Network ;
22
23
23
24
/**
24
25
* Thrown when a send by consistent ID fails because there's a duplicate consistent ID in the physical topology.
25
26
*/
26
27
public class DuplicateConsistentIdException extends IgniteInternalException {
27
28
public DuplicateConsistentIdException (String msg ) {
28
- super (Network . DUPLICATE_CONSISTENT_ID_ERR , msg );
29
+ super (INTERNAL_ERR , msg );
29
30
}
30
31
}
Original file line number Diff line number Diff line change @@ -157,7 +157,6 @@ enum class code : underlying_t {
157
157
FILE_VALIDATION = 0xb0004 ,
158
158
RECIPIENT_LEFT = 0xb0005 ,
159
159
ADDRESS_UNRESOLVED = 0xb0006 ,
160
- DUPLICATE_CONSISTENT_ID = 0xb0007 ,
161
160
162
161
// NodeConfiguration group. Group code: 12
163
162
CONFIG_READ = 0xc0001 ,
Original file line number Diff line number Diff line change @@ -234,7 +234,6 @@ sql_state error_code_to_sql_state(error::code code) {
234
234
case error::code::FILE_VALIDATION:
235
235
case error::code::RECIPIENT_LEFT:
236
236
case error::code::ADDRESS_UNRESOLVED:
237
- case error::code::DUPLICATE_CONSISTENT_ID:
238
237
return sql_state::S08001_CANNOT_CONNECT;
239
238
240
239
// NodeConfiguration group. Group code: 12
Original file line number Diff line number Diff line change @@ -456,9 +456,6 @@ public static class Network
456
456
457
457
/// <summary> AddressUnresolved error. </summary>
458
458
public const int AddressUnresolved = ( GroupCode << 16 ) | ( 6 & 0xFFFF ) ;
459
-
460
- /// <summary> DuplicateConsistentId error. </summary>
461
- public const int DuplicateConsistentId = ( GroupCode << 16 ) | ( 7 & 0xFFFF ) ;
462
459
}
463
460
464
461
/// <summary> NodeConfiguration errors. </summary>
You can’t perform that action at this time.
0 commit comments