Skip to content

Commit

Permalink
Merge pull request #44 from klarna-incubator/sink-refactor
Browse files Browse the repository at this point in the history
Sink refactor
  • Loading branch information
nirtsruya authored Feb 22, 2021
2 parents 03e761a + 5b3e6b9 commit 5f91906
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<groupId>com.klarna</groupId>
<version>1.1.0</version>
<version>1.1.1</version>
<artifactId>flink-connector-dynamodb</artifactId>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ protected Callable<BatchResponse> batchWrite(final BatchRequest batchRequest) {
t = null;
try {
final BatchWriteItemResponse batchWriteItemResponse = dynamoDbClient.batchWriteItem(batchWriteItemRequest);
if (batchWriteItemResponse.hasUnprocessedItems()) {
Map<String, List<WriteRequest>> unprocessedItems = batchWriteItemResponse.unprocessedItems();
if (!unprocessedItems.isEmpty()) {
retry = true;
batchWriteItemRequest = BatchWriteItemRequest.builder()
.requestItems(batchWriteItemResponse.unprocessedItems())
Expand Down

0 comments on commit 5f91906

Please sign in to comment.