-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Improve reading kinesis stream state #15489
Improve reading kinesis stream state #15489
Conversation
8358d24
to
305059e
Compare
Pull request #21306 has significantly refactored the AWS Provider codebase. As a result, most PRs opened prior to the refactor now have merge conflicts that must be resolved before proceeding. Specifically, PR #21306 relocated the code for all AWS resources and data sources from a single We recognize that many pull requests have been open for some time without yet being addressed by our maintainers. Therefore, we want to make it clear that resolving these conflicts in no way affects the prioritization of a particular pull request. Once a pull request has been prioritized for review, the necessary changes will be made by a maintainer -- either directly or in collaboration with the pull request author. For a more complete description of this refactor, including examples of how old filepaths and function names correspond to their new counterparts: please refer to issue #20000. For a quick guide on how to amend your pull request to resolve the merge conflicts resulting from this refactor and bring it in line with our new code patterns: please refer to our Service Package Refactor Pull Request Guide. |
305059e
to
dbc1f64
Compare
11315d2
to
7096f63
Compare
This reverts commit e1f7daa.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccKinesisStream_\|TestAccKinesisStreamDataSource_\|TestAccKinesisStreamConsumer_\|TestAccKinesisStreamConsumerDataSource_' PKG_NAME=internal/service/kinesis
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/kinesis/... -v -count 1 -parallel 20 -run=TestAccKinesisStream_\|TestAccKinesisStreamDataSource_\|TestAccKinesisStreamConsumer_\|TestAccKinesisStreamConsumerDataSource_ -timeout 180m
=== RUN TestAccKinesisStreamConsumerDataSource_basic
=== PAUSE TestAccKinesisStreamConsumerDataSource_basic
=== RUN TestAccKinesisStreamConsumerDataSource_name
=== PAUSE TestAccKinesisStreamConsumerDataSource_name
=== RUN TestAccKinesisStreamConsumerDataSource_arn
=== PAUSE TestAccKinesisStreamConsumerDataSource_arn
=== RUN TestAccKinesisStreamConsumer_basic
=== PAUSE TestAccKinesisStreamConsumer_basic
=== RUN TestAccKinesisStreamConsumer_disappears
=== PAUSE TestAccKinesisStreamConsumer_disappears
=== RUN TestAccKinesisStreamConsumer_maxConcurrentConsumers
=== PAUSE TestAccKinesisStreamConsumer_maxConcurrentConsumers
=== RUN TestAccKinesisStreamConsumer_exceedMaxConcurrentConsumers
=== PAUSE TestAccKinesisStreamConsumer_exceedMaxConcurrentConsumers
=== RUN TestAccKinesisStreamDataSource_basic
=== PAUSE TestAccKinesisStreamDataSource_basic
=== RUN TestAccKinesisStream_basic
=== PAUSE TestAccKinesisStream_basic
=== RUN TestAccKinesisStream_disappears
=== PAUSE TestAccKinesisStream_disappears
=== RUN TestAccKinesisStream_createMultipleConcurrentStreams
=== PAUSE TestAccKinesisStream_createMultipleConcurrentStreams
=== RUN TestAccKinesisStream_encryptionWithoutKMSKeyThrowsError
=== PAUSE TestAccKinesisStream_encryptionWithoutKMSKeyThrowsError
=== RUN TestAccKinesisStream_encryption
=== PAUSE TestAccKinesisStream_encryption
=== RUN TestAccKinesisStream_shardCount
=== PAUSE TestAccKinesisStream_shardCount
=== RUN TestAccKinesisStream_retentionPeriod
=== PAUSE TestAccKinesisStream_retentionPeriod
=== RUN TestAccKinesisStream_shardLevelMetrics
=== PAUSE TestAccKinesisStream_shardLevelMetrics
=== RUN TestAccKinesisStream_enforceConsumerDeletion
=== PAUSE TestAccKinesisStream_enforceConsumerDeletion
=== RUN TestAccKinesisStream_tags
=== PAUSE TestAccKinesisStream_tags
=== RUN TestAccKinesisStream_updateKMSKeyID
=== PAUSE TestAccKinesisStream_updateKMSKeyID
=== RUN TestAccKinesisStream_basicOnDemand
=== PAUSE TestAccKinesisStream_basicOnDemand
=== RUN TestAccKinesisStream_switchBetweenProvisionedAndOnDemand
=== PAUSE TestAccKinesisStream_switchBetweenProvisionedAndOnDemand
=== RUN TestAccKinesisStream_failOnBadStreamCountAndStreamModeCombination
=== PAUSE TestAccKinesisStream_failOnBadStreamCountAndStreamModeCombination
=== CONT TestAccKinesisStreamConsumerDataSource_basic
=== CONT TestAccKinesisStream_encryption
=== CONT TestAccKinesisStream_basicOnDemand
=== CONT TestAccKinesisStreamConsumer_maxConcurrentConsumers
=== CONT TestAccKinesisStream_enforceConsumerDeletion
=== CONT TestAccKinesisStreamConsumer_exceedMaxConcurrentConsumers
=== CONT TestAccKinesisStream_shardLevelMetrics
=== CONT TestAccKinesisStream_encryptionWithoutKMSKeyThrowsError
=== CONT TestAccKinesisStream_createMultipleConcurrentStreams
=== CONT TestAccKinesisStream_disappears
=== CONT TestAccKinesisStream_basic
=== CONT TestAccKinesisStreamDataSource_basic
=== CONT TestAccKinesisStream_updateKMSKeyID
=== CONT TestAccKinesisStream_failOnBadStreamCountAndStreamModeCombination
=== CONT TestAccKinesisStream_switchBetweenProvisionedAndOnDemand
=== CONT TestAccKinesisStream_retentionPeriod
=== CONT TestAccKinesisStream_shardCount
=== CONT TestAccKinesisStreamConsumer_basic
=== CONT TestAccKinesisStream_tags
=== CONT TestAccKinesisStreamConsumerDataSource_name
--- PASS: TestAccKinesisStreamConsumer_basic (69.81s)
=== CONT TestAccKinesisStreamConsumer_disappears
--- PASS: TestAccKinesisStreamConsumer_maxConcurrentConsumers (75.53s)
=== CONT TestAccKinesisStreamConsumerDataSource_arn
--- PASS: TestAccKinesisStream_tags (81.39s)
--- PASS: TestAccKinesisStream_enforceConsumerDeletion (84.23s)
--- PASS: TestAccKinesisStream_basicOnDemand (84.96s)
--- PASS: TestAccKinesisStreamConsumer_exceedMaxConcurrentConsumers (85.90s)
--- PASS: TestAccKinesisStream_disappears (99.11s)
--- PASS: TestAccKinesisStreamConsumerDataSource_name (101.04s)
--- PASS: TestAccKinesisStreamConsumerDataSource_basic (120.26s)
--- PASS: TestAccKinesisStreamDataSource_basic (121.05s)
--- PASS: TestAccKinesisStream_updateKMSKeyID (122.22s)
--- PASS: TestAccKinesisStreamConsumer_disappears (61.40s)
--- PASS: TestAccKinesisStreamConsumerDataSource_arn (58.23s)
--- PASS: TestAccKinesisStream_shardLevelMetrics (137.81s)
--- PASS: TestAccKinesisStream_failOnBadStreamCountAndStreamModeCombination (140.09s)
--- PASS: TestAccKinesisStream_encryption (145.47s)
--- PASS: TestAccKinesisStream_encryptionWithoutKMSKeyThrowsError (149.48s)
--- PASS: TestAccKinesisStream_retentionPeriod (150.62s)
--- PASS: TestAccKinesisStream_basic (152.01s)
--- PASS: TestAccKinesisStream_switchBetweenProvisionedAndOnDemand (217.54s)
--- PASS: TestAccKinesisStream_createMultipleConcurrentStreams (288.96s)
--- PASS: TestAccKinesisStream_shardCount (766.41s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/kinesis 770.104s
@hrist0stoichev Thanks for the contribution 🎉 👏. |
@ewbankkit thanks for reviewing and merging this one. We were building a custom version of |
This functionality has been released in v3.71.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Change summary
DescribeStreamPages
API as it is deprecated and start usingDescribeStreamSummary
along withListShards
to get information about the shards.DescribeStreamPages
). In some cases in which there are a lot of shards, this could lead to a timeout.consumers_count
in AWS Kinesis Stream Data Source as it is returned byDescribeStreamSummary
API. This change is a bit unrelated to the other changes so, if necessary, I can extract it to another PR after this one is merged.Release note for CHANGELOG:
Output from acceptance testing: