From 29319fbfb5f861c8f9655c7dad846f38d5150910 Mon Sep 17 00:00:00 2001 From: Sam Fakhreddine Date: Sat, 10 Oct 2026 12:02:20 -0600 Subject: [PATCH] fix(lambda): default event source mapping BatchSize by source type (#5362) CreateEventSourceMapping stored BatchSize 10 for every event source when the request omitted it. The Lambda model documents a per-source default: 10 for SQS and 100 for Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, Amazon MQ and DocumentDB. SQS mappings keep 10; every other source now defaults to 100. updateEventSourceMapping_invalidLaterField_leavesBatchSizeAndEnabledUnchanged asserted the untouched Kafka mapping kept the old default of 10; it now expects 100. Fixes #4740 --- .../floci/services/lambda/LambdaService.java | 7 +++++- .../services/lambda/EsmIntegrationTest.java | 22 +++++++++++++++++++ .../services/lambda/LambdaServiceTest.java | 15 ++++++++++++- 3 files changed, 42 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/hectorvent/floci/services/lambda/LambdaService.java b/src/main/java/io/github/hectorvent/floci/services/lambda/LambdaService.java index c289d749b5..9b426f7849 100644 --- a/src/main/java/io/github/hectorvent/floci/services/lambda/LambdaService.java +++ b/src/main/java/io/github/hectorvent/floci/services/lambda/LambdaService.java @@ -97,6 +97,8 @@ public class LambdaService implements ResourceProvider { private static final Pattern S3_BUCKET_PATTERN = Pattern.compile("[0-9A-Za-z\\.\\-_]*(?