Skip to content

Commit

Permalink
Added new retry codes (#237)
Browse files Browse the repository at this point in the history
* Added new retry codes
  • Loading branch information
Paultagoras authored Nov 7, 2023
1 parent f0c8ed5 commit 8a2ef2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## 1.0.3 2023-11-XX
## 1.0.3 2023-11-07
* Added support for proxy configurations
* Additional test cases
* Additional error codes added to retry list (242, 319, 999)

## 1.0.2 2023-11-02
* Updated dependencies
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.2
v1.0.3
3 changes: 3 additions & 0 deletions src/main/java/com/clickhouse/kafka/connect/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ public static void handleException(Exception e, boolean errorsTolerance) {
case 203: // NO_FREE_CONNECTION
case 209: // SOCKET_TIMEOUT
case 210: // NETWORK_ERROR
case 242: // TABLE_IS_READ_ONLY
case 252: // TOO_MANY_PARTS
case 285: // TOO_FEW_LIVE_REPLICAS
case 319: // UNKNOWN_STATUS_OF_INSERT
case 425: // SYSTEM_ERROR
case 999: // KEEPER_EXCEPTION
case 1002: // UNKNOWN_EXCEPTION
throw new RetriableException(e);
default:
Expand Down

0 comments on commit 8a2ef2a

Please sign in to comment.