Skip to content

DBZ-8288 AuroraReselectColumnsPostProcessor Implementation#5911

Open
gaurav7261 wants to merge 5 commits intodebezium:mainfrom
gaurav7261:DBZ-8288
Open

DBZ-8288 AuroraReselectColumnsPostProcessor Implementation#5911
gaurav7261 wants to merge 5 commits intodebezium:mainfrom
gaurav7261:DBZ-8288

Conversation

@gaurav7261
Copy link
Contributor

@gaurav7261 gaurav7261 commented Oct 3, 2024

Copy link
Member

@Naros Naros left a comment

Choose a reason for hiding this comment

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

A few inline suggestions/comments.

@gaurav7261
Copy link
Contributor Author

@Naros please have a look at pr changes, meanwhile i'm adding test cases as well as we discussed on zulip

@gaurav7261 gaurav7261 changed the title DBZ-8288 WIP AuroraReselectColumnsPostProcessor Implementation DBZ-8288 AuroraReselectColumnsPostProcessor Implementation Oct 5, 2024
Copy link
Member

@Naros Naros left a comment

Choose a reason for hiding this comment

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

Just a few nit-picks, I'd prefer that the resolve method return the value and the only assignment opportunity is in the base class.

@gaurav7261 gaurav7261 requested a review from Naros October 7, 2024 00:04
@Naros
Copy link
Member

Naros commented Oct 7, 2024

I reworked the docs just slightly to add an Aurora section. @gaurav7261, do you plan to add the MySQL version here too, or will you be doing that in a separate Jira & PR?

@gaurav7261
Copy link
Contributor Author

yes @Naros , separate jira and PR for mysql

Copy link
Member

@Naros Naros left a comment

Choose a reason for hiding this comment

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

LGTM, any objection from your PoV @jpechane ?

Copy link
Contributor

@jpechane jpechane left a comment

Choose a reason for hiding this comment

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

@gaurav7261 Thanks a lot.

@Naros @gaurav7261 I left one comment related to the configuration of reselector.

Yet I've one question for both of you. Do we need it to tight it to Aurora? I mean this could be used on arbitrary cloud provider if necessary. I'd propose remove references to aurora in class name, connection name, test name etc. And use a generic name like RedirectedReselectComunsProcessor.

And only in documentation the Aurora uses case will be highligted as the original motivation. WDYT?

JdbcConnection jdbcConnection = super.resolveJdbcConnection(beanRegistry);
// create reader connection
LOGGER.info("Creating reader connection for reselect using reader host: {} and port: {}", readerHost, readerPort);
JdbcConfiguration newJdbcConfiguration = JdbcConfiguration.copy(jdbcConnection.config())
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need even new config options? Maybe it would be better just to take connector level JDBC configuration and override it from options provided by the postprocessor. In that case you'd be able if necessary to override or provide other JDBC connection and conneciton string parameters.

Copy link
Member

Choose a reason for hiding this comment

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

I like it, and that would reduce the need to create a MySQL variant too 👍

@jpechane
Copy link
Contributor

jpechane commented Oct 8, 2024

@gaurav7261 If we'd go with generic JdbcConnection and sacrifica the name of the connection then it can be moved to the core.

@Naros
Copy link
Member

Naros commented Jan 6, 2026

❌ Developer Certificate of Origin (DCO) check failed.

Hi @gaurav7261, please sign off all commits with:

git commit -s

If pull request commits are not signed off, the pull request cannot be merged. For more information about why this is required, please see our blog about contribution requirement changes.

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