-
Notifications
You must be signed in to change notification settings - Fork 3
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
DynamoDB / AWS Lambda: CrateDB raises DuplicateKeyException
after Lambda is resuming CDC operations
#301
Comments
a) We will look into the resume logic if we can spot any bugs. |
a) Relating to that comment, cratedb-toolkit/cratedb_toolkit/io/processor/kinesis_lambda.py Lines 106 to 110 in db67cd1
and how error handling is taking place, cratedb-toolkit/cratedb_toolkit/io/processor/kinesis_lambda.py Lines 142 to 154 in db67cd1
I guess the regular modus operandi for a Lambda that receives events from a Kinesis stream is that if the Lambda fails for whatever reason, recent in-flight events will be re-delivered. If it's multiple records, it is probably normal that some of them may be redundant, because they have been relayed to CrateDB successfully already. b) I guess using ON CONFLICT IGNORE/UPDATE instead will be the right choice. |
Investigation » ComparisonComing from DMS: How does a replication task handle duplicate data w/o Primary/Unique keys on the table, and How do I modify the error handling task settings for an AWS DMS task?, AWS DMS employs a dedicated error behavior option called
There is also an equivalent that probably applies to both full-load and cdc operation modes:
See also:
Evaluation
AWS DMS' default setting of |
DuplicateKeyException
after resuming CDC operation
So, let's merge and release crate/commons-codec#77 as a quick measure, and then follow up with a more elaborate implementation that will be closer to what DMS is providing, in terms of configuration and logging flexibility, then considering @kneth's suggestion:
|
DuplicateKeyException
after resuming CDC operationDuplicateKeyException
after Lambda is resuming CDC operations
We received a request to make crate/commons-codec#77 configurable using a feature flag:
It will be added on the next development iteration. |
About
Problem
/cc @dfeokti
The text was updated successfully, but these errors were encountered: