-
Notifications
You must be signed in to change notification settings - Fork 4k
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
SelfManagedKafkaEventSourceProps: default maxBatchingWindow incorrect #21974
Labels
@aws-cdk/aws-lambda-event-sources
documentation
This is a problem with documentation.
effort/small
Small work item – less than a day of effort
p2
Comments
4 tasks
mergify bot
pushed a commit
that referenced
this issue
Sep 9, 2022
…ngWindow (#21981) Fixes #21974 ---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Kruspe
pushed a commit
to DavidSchwarz2/aws-cdk
that referenced
this issue
Sep 13, 2022
…ngWindow (aws#21981) Fixes aws#21974 ---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-lambda-event-sources
documentation
This is a problem with documentation.
effort/small
Small work item – less than a day of effort
p2
Describe the issue
The given default value for maxBatchingWindow for the SelfManagedKafkaEventSourceProps resource is incorrect. It incorrectly states that the default is 0 seconds, when according to the Lambda documentation, it should be 500 ms:
According to a CDK doc writer, it appears that
SelfManagedKafkaEventSource
inherits that default from a base class,StreamEventSource
, which is why the default is set to 0 seconds. While it's true that for some Lambda event sources (SQS, Kinesis, DDB streams) the default batching window is 0 seconds, for others (MSK, Kafka, MQ) it's 500 ms. In this case,SelfManagedKafkaEventSource
should not be inheriting from the same class as the SQS, Kinesis, and DDB streams event sources.Please correct this in the CDK documentation!
Links
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_event_sources.SelfManagedKafkaEventSourceProps.html#maxbatchingwindow
The text was updated successfully, but these errors were encountered: