Skip to content
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

Merged
merged 1 commit into from
Apr 6, 2020

Conversation

olukas
Copy link
Contributor

@olukas olukas commented Mar 27, 2020

No description provided.

@olukas olukas requested a review from gurbuzali March 27, 2020 09:33
@devOpsHazelcast
Copy link

devOpsHazelcast commented Apr 5, 2020

CLA assistant check
All committers have signed the CLA.

Copy link

@gurbuzali gurbuzali left a 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)

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

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) {

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

@olukas
Copy link
Contributor Author

olukas commented Apr 6, 2020

Thanks for review. I created #79 to track review comments related to logic centralization.

@olukas olukas merged commit b2acbc7 into hazelcast:master Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants