Skip to content

Commit

Permalink
DBZ-2625 Retry on transaction deadlock
Browse files Browse the repository at this point in the history
When CDC is reconfigured while connector is running it is possbile to
end up in tx deadlock. Such situation is only temporary and connector
could recover from it upon restart.
jpechane authored and Naros committed Nov 10, 2020
1 parent c41aa0e commit 3b1f3e7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -30,6 +30,8 @@ protected boolean isRetriable(Throwable throwable) {
|| throwable.getMessage().contains("Connection reset")
|| throwable.getMessage().contains("SHUTDOWN is in progress")
|| throwable.getMessage()
.startsWith("An insufficient number of arguments were supplied for the procedure or function cdc.fn_cdc_get_all_changes_"));
.startsWith("An insufficient number of arguments were supplied for the procedure or function cdc.fn_cdc_get_all_changes_")
|| throwable.getMessage()
.endsWith("was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction."));
}
}

0 comments on commit 3b1f3e7

Please sign in to comment.