[FLINK-39960][docs] Remove broken JavaDoc shortcode usage from JDBC docs#193
Conversation
|
Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html) |
|
Hi @Dennis-Mircea, thank you for pointing this out and contributing! |
@ocb3916, It is ready, there nothing more to work on... |
|
@davidradl can you have a look? |
There was a problem hiding this comment.
Thanks for this contribution, @Dennis-Mircea! And thanks to @ocb3916 for the early check on this.
As we're approaching an upcoming release, the removal looks correct since there's no publicly hosted javadoc for this connector yet.
Just one thing before merging — could you apply the same changes to docs/content.zh/docs/connectors/datastream/jdbc.md as well?
cc. @RocMarshal
|
Could you open a JIRA ticket for this change too? |
Thanks for the review, @och5351! I opened FLINK-39960 and fixed the comments. |
There was a problem hiding this comment.
Hi @Dennis-Mircea!
Thank you for your quick updates!
I've reviewed the changes and checked the Jira ticket.
I noticed a couple of other things in this PR that are different from the fixes you made, and I'd like to request your help with them:
Both
docs/content/docs/connectors/datastream/jdbc.mdanddocs/content.zh/docs/connectors/datastream/jdbc.mdhave the same issues.
- Under the "JDBC execution options" section, the indentation of
.build();in the first code block doesn't seem to match the one below. Could you align it with the code below?
- Under the "JdbcSink.exactlyOnceSink" section, could you update the
env.fromElementspart to match the code shown below?
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env.fromElements(...)
.addSink(
JdbcSink.exactlyOnceSink(
"insert into books (id, title, author, price, qty) values (?,?,?,?,?)",
(ps, t) -> {
ps.setInt(1, t.id);
ps.setString(2, t.title);
ps.setString(3, t.author);
ps.setDouble(4, t.price);
ps.setInt(5, t.qty);
},
JdbcExecutionOptions.builder().withMaxRetries(0).build(),
JdbcExactlyOnceOptions.defaults(),
() -> {
// create a driver-specific XA DataSource
// The following example is for derby
EmbeddedXADataSource ds = new EmbeddedXADataSource();
ds.setDatabaseName("my_db");
return ds;
}));
env.execute();- Once you've finished the changes, could you create a total of 2 commits — one for the main fix with the commit message matching the PR title, and one for the indentation alignment fix — then request a review again?
Please don't hesitate to point out anything I may have missed or gotten wrong. I'd really appreciate it!
cc. @RocMarshal @ocb3916
Thank you!
RocMarshal
left a comment
There was a problem hiding this comment.
Thanks @Dennis-Mircea @och5351
Could we add links to the latest API documentation where the deletions are?
|
Hi @Dennis-Mircea ! |
ef9ca92 to
1fcc8cf
Compare
I addressed it now! Thanks for the suggestion. I also made 2 commits, so the split is crystal clear now. |
Thanks @RocMarshal! The reason these links were removed is that they're all broken, the |
|
Awesome work, congrats on your first merged pull request! |


The
{{< javadoc … >}}shortcode resolves to the core Flink javadocs base URL (//nightlies.apache.org/flink/flink-docs-master/api/java/), where externalized connector classes such asJdbcSource,JdbcSinkandJdbcExecutionOptionsare not published. ASF nightlies does not host a standalone javadoc site for the JDBC connector either, so every javadoc link on the JDBC datastream page currently 404s. Replace each shortcode invocation with a backticked class name, matching the convention already used in the Kafka, Elasticsearch and Pulsar docs.