Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kondaka <[email protected]>
  • Loading branch information
kkondaka committed Nov 17, 2024
1 parent 8fe70b9 commit cd72a82
Show file tree
Hide file tree
Showing 2 changed files with 240 additions and 270 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ public Collection<Record<Event>> doExecute(Collection<Record<Event>> records) {
}
recordsToLambda.add(record);
}
resultRecords.addAll(
try {
resultRecords.addAll(
lambdaCommonHandler.sendRecords(recordsToLambda, lambdaProcessorConfig, lambdaAsyncClient,
(inputBuffer, response) -> {
Duration latency = inputBuffer.stopLatencyWatch();
Expand All @@ -158,7 +159,12 @@ public Collection<Record<Event>> doExecute(Collection<Record<Event>> records) {
numberOfRequestsFailedCounter.increment();
addFailureTags(inputBuffer, outputRecords);
})
);

);
} catch (Exception e) {
numberOfRecordsFailedCounter.increment(recordsToLambda.size());
resultRecords.addAll(recordsToLambda);
}
return resultRecords;
}

Expand Down
Loading

0 comments on commit cd72a82

Please sign in to comment.