Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBZ-7032 Implement Retries for Amazon Kinesis Event Transmittion #43

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Format the code style.
  • Loading branch information
ilyasahsan123 committed Oct 28, 2023
commit 860fb62ef79a4f79de76d34b977660530edabd9f
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ private boolean recordSent(ChangeEvent<Object, Object> record) {
try {
client.putRecord(putRecord);
sent = true;
} catch (SdkClientException exception) {
}
catch (SdkClientException exception) {
LOGGER.error("Failed to send record to {}:", record.destination(), exception);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to log the exception and re-throw. Either you should handle the exception and if you don't handle it, don't catch it a let the caller to handle it (and eventually log the exception)

}
return sent;
Expand Down