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

[FLINK-22289] Update JDBC XA sink docs #15720

Merged
merged 1 commit into from Apr 27, 2021

Conversation

curcur
Copy link
Contributor

@curcur curcur commented Apr 22, 2021

No description provided.

@flinkbot
Copy link
Collaborator

flinkbot commented Apr 22, 2021

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Automated Checks

Last check on commit a493e7a (Fri May 28 11:05:03 UTC 2021)

Warnings:

  • Documentation files were touched, but no docs/content.zh/ files: Update Chinese documentation or file Jira ticket.

Mention the bot in a comment to re-run the automated checks.

Review Progress

  • ❓ 1. The [description] looks good.
  • ❓ 2. There is [consensus] that the contribution should go into to Flink.
  • ❓ 3. Needs [attention] from.
  • ❓ 4. The change fits into the overall [architecture].
  • ❓ 5. Overall code [quality] is good.

Please see the Pull Request Review Guide for a full explanation of the review process.


The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commands
The @flinkbot bot supports the following commands:

  • @flinkbot approve description to approve one or more aspects (aspects: description, consensus, architecture and quality)
  • @flinkbot approve all to approve all aspects
  • @flinkbot approve-until architecture to approve everything until architecture
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval you gave earlier

@flinkbot
Copy link
Collaborator

flinkbot commented Apr 22, 2021

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run travis re-run the last Travis build
  • @flinkbot run azure re-run the last Azure build

Copy link
Contributor

@rkhachatryan rkhachatryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @curcur.

Should we also remove this warning:

Attention: In 1.13, Flink JDBC sink does not support exactly-once mode with MySQL or other databases that do not support
multiple XA transaction per connection. We will improve the support in FLINK-22239.
?

| Driver | Group Id | Artifact Id | JAR |
| :-----------| :------------------| :----------------------| :----------------|
| MySQL | `mysql` | `mysql-connector-java` | [Download](https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/) |
| PostgreSQL | `org.postgresql` | `postgresql` | [Download](https://jdbc.postgresql.org/download.html) |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure we can link to this page? (PostgreSQL has its own license)

Copy link
Contributor Author

@curcur curcur Apr 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is using the same link as
https://ci.apache.org/projects/flink/flink-docs-master/docs/connectors/table/jdbc/

So I would only say this link does not include extra legal issue

Comment on lines +196 to +194
pgxaDataSource.setUrl(
"jdbc:postgresql://localhost:5432/postgres");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think users will likely need this too:

        pgxaDataSource.setUser(username);
        pgxaDataSource.setPassword(password);

Copy link
Contributor Author

@curcur curcur Apr 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, usually it should.

My intention for this example is to make this example "runnable out of box"; That says if user copy-paste the example to its IDE, and has postgres installed with default set up, it would work.

I installed postgre and used its default table as an example. The default one can be accessed without username and password (with default username and password).

@curcur
Copy link
Contributor Author

curcur commented Apr 27, 2021

Thanks for the PR @curcur.

Should we also remove this warning:

Attention: In 1.13, Flink JDBC sink does not support exactly-once mode with MySQL or other databases that do not support
multiple XA transaction per connection. We will improve the support in FLINK-22239.
?

That's a good point.

@curcur
Copy link
Contributor Author

curcur commented Apr 27, 2021

Hey @rkhachatryan , thanks for reviewing. I've removed the limitation part. How do you think of the comments above? I do not have strong opinions either of them.

Copy link
Contributor

@rkhachatryan rkhachatryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the PR @curcur, I agree with your comments.

@rkhachatryan
Copy link
Contributor

CI failure unrelated, passed in a private branch, merging.

@rkhachatryan rkhachatryan merged commit 334dae6 into apache:master Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants