-
Notifications
You must be signed in to change notification settings - Fork 16
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
Added test for transactional JDBC sink #77
Conversation
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.
with minor comments
|
||
@Override | ||
public void init(JetInstance client) throws Exception { | ||
connectionUrl = System.getProperty("connectionUrl", DEFAULT_DATABASE_URL) |
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.
property(String, String)
method from AbstractSoakTest
can be used here
|
||
Pipeline pipeline = Pipeline.create(); | ||
|
||
StreamSource<Integer> source = SourceBuilder |
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.
we use this source for other tests too, time to move it to a central place I guess. can be done as a separate PR
private long counter; | ||
private final PriorityQueue<Integer> verificationQueue = new PriorityQueue<>(); | ||
|
||
public JdbcSinkVerifier(String name, ILogger logger, String connectionUrl) { |
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.
I also see some similarities between JmsSinkVerifier, GeneratedFilesVerifier and JdbcSinkVerifier. some of the logic can be centralized
5ff8c63
to
3c162aa
Compare
Thanks for review. I created #79 to track review comments related to logic centralization. |
No description provided.