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
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit a493e7a (Fri May 28 11:05:03 UTC 2021) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
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 commandsThe @flinkbot bot supports the following commands:
|
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.
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) | |
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.
Are you sure we can link to this page? (PostgreSQL has its own license)
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.
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
pgxaDataSource.setUrl( | ||
"jdbc:postgresql://localhost:5432/postgres"); |
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 think users will likely need this too:
pgxaDataSource.setUser(username);
pgxaDataSource.setPassword(password);
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.
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).
That's a good point. |
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. |
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.
Thanks for updating the PR @curcur, I agree with your comments.
CI failure unrelated, passed in a private branch, merging. |
No description provided.