-
Notifications
You must be signed in to change notification settings - Fork 77
[FLINK-36296][Connectors/DynamoDB] Add support for incremental shard discovery for DynamoDB Streams Source #219
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
Conversation
tejanshrana
left a comment
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.
Thank you for contributing this feature
.../org/apache/flink/connector/dynamodb/source/config/DynamodbStreamsSourceConfigConstants.java
Outdated
Show resolved
Hide resolved
| DynamoDbStreamsSourceEnumeratorState checkpoint) | ||
| throws Exception { | ||
| int maxApiCallAttempts = sourceConfig.get(DYNAMODB_STREAMS_RETRY_COUNT); | ||
| Duration minDescribeStreamDelay = |
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.
in the name of the variable minDescribeStreamDelay, why does it include the word Describe
ferenc-csaky
left a comment
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.
Thanks for this change. Pls. see my comments.
.../org/apache/flink/connector/dynamodb/source/enumerator/event/SplitsFinishedEventContext.java
Outdated
Show resolved
Hide resolved
.../org/apache/flink/connector/dynamodb/source/config/DynamodbStreamsSourceConfigConstants.java
Outdated
Show resolved
Hide resolved
.../org/apache/flink/connector/dynamodb/source/config/DynamodbStreamsSourceConfigConstants.java
Outdated
Show resolved
Hide resolved
...main/java/org/apache/flink/connector/dynamodb/sink/DynamoDbTypeInformedElementConverter.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/apache/flink/connector/dynamodb/source/proxy/DynamoDbStreamsProxyTest.java
Outdated
Show resolved
Hide resolved
.../org/apache/flink/connector/dynamodb/source/enumerator/event/SplitsFinishedEventContext.java
Show resolved
Hide resolved
...main/java/org/apache/flink/connector/dynamodb/source/reader/DynamoDbStreamsSourceReader.java
Show resolved
Hide resolved
...rg/apache/flink/connector/dynamodb/source/reader/PollingDynamoDbStreamsShardSplitReader.java
Outdated
Show resolved
Hide resolved
.../test/java/org/apache/flink/connector/dynamodb/source/util/DynamoDbStreamsProxyProvider.java
Outdated
Show resolved
Hide resolved
|
Thanks @ferenc-csaky @davidradl i have addressed your comments in the PR! |
ferenc-csaky
left a comment
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.
Mostly looks good
...in/java/org/apache/flink/connector/dynamodb/source/split/DynamoDbStreamsShardSplitState.java
Outdated
Show resolved
Hide resolved
…discovery for DynamoDB Streams Source
Purpose of the change
DynamoDB has launched a new shard filter API in DescribeStream to discover child shards of a parent shard in AWS SDK 2.32.0. This PR adds support for this new feature.
Verifying this change
Please make sure both new and modified tests in this PR follows the conventions defined in our code quality guide: https://flink.apache.org/contributing/code-style-and-quality-common.html#testing
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
Significant changes
(Please check any boxes [x] if the answer is "yes". You can first publish the PR and check them afterwards, for convenience.)
@Public(Evolving))