-
Notifications
You must be signed in to change notification settings - Fork 11
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
Basic integration tests #48
base: master
Are you sure you want to change the base?
Conversation
Hi sv3ndk! |
Thanks for the kind feed-back @nirtsruya . |
Hi everyone, I understand you're not currently focusing on this connector, although since this repo has been very helpful to me I thought I'd post an update of my progress here. This connector works pretty well but I observed the following quirks:
I finally coded another dynamo sink, taking some simpler assumptions:
The result is very simple class of about 150 lines. In case any of this is or becomes relevant to you at some point, fee free to reach out and I'm pretty sure my employer would happily share this connector. Thanks again for having open sourced this connector, this has been useful step in my current project. |
Hello sv3ndk, and thank you for your interest in this project, I am glad it could help you!
Again sorry for inactivity, will make sure to check more often. |
Hi,
Thanks for developing this Flink DynamoDB sink. I'm looking for such a sink for my current project, I started experimenting with some integration tests that maybe could be useful to this project?
The main point this PR is
IntegrationTest.java
, which starts a local instance of DynamoDB (with localstack and test container), launches a minimalistic Flink application that relies on the connector to push the records to DynamoDB and then checks the content of the DB.Both tests pass :) However, I believe I'm able to reproduce one race condition in the connector with some specific parameters. I'm happy to submit more info about that in a subsequent PR if you want?
I also added a log4j config for the test execution, although we need to specify the flag
-Dlog4j.configurationFile=log4j2.xml
when starting the tests to make it effective since it seems flink test classes bundle alog4j2-test.properties
file that silence the logs. I'm not sure why that file is bundled in those libs TBH.I hope you find this useful. Of course, any feed-back welcome.