Skip to content

Few updates to RDS source plugin#5602

Merged
oeyh merged 3 commits into
opensearch-project:mainfrom
oeyh:rds/more-gameday-findings
Apr 16, 2025
Merged

Few updates to RDS source plugin#5602
oeyh merged 3 commits into
opensearch-project:mainfrom
oeyh:rds/more-gameday-findings

Conversation

@oeyh

@oeyh oeyh commented Apr 14, 2025

Copy link
Copy Markdown
Collaborator

Description

Adds a few more changes to rds source plugin:

  • Remove step to clean up replication slot for now. It's causing replication slot doesn't exist error during pipeline update in OSI.
  • Update table filter config: moves database option out of table filter config
  • Fix getCurrentBinaryLogPosition() method so it's compatible with MySQL version 8.4 and later.

Issues Resolved

N/A

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

oeyh added 3 commits April 14, 2025 11:17
Signed-off-by: Hai Yan <oeyh@amazon.com>
Signed-off-by: Hai Yan <oeyh@amazon.com>
Signed-off-by: Hai Yan <oeyh@amazon.com>
@oeyh oeyh changed the title Rds/more gameday findings Few updates to RDS source plugin Apr 14, 2025
shutdownRequested = true;

// Clean up publication and replication slot for Postgres
if (streamPartition != null) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How do you plan to clean up long term when the RDS source is deleted ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't have a good plan on this yet. We can discuss this offline.

Comment on lines +51 to +52
@NotEmpty
private String database;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this change made because we don't support the use case of table join across database ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The change in this PR is just moving the option out of TableFilterConfig, it was added in a previous PR. And yes, the database option is to limit the range of tables within one database. We don't support cross database in a single pipeline.

@oeyh oeyh merged commit d24c3fa into opensearch-project:main Apr 16, 2025
Davidding4718 pushed a commit to Davidding4718/data-prepper that referenced this pull request Apr 25, 2025
* Remove step to clean up replication slot

Signed-off-by: Hai Yan <oeyh@amazon.com>

* Update table filter config

Signed-off-by: Hai Yan <oeyh@amazon.com>

* Fix query for mysql 8.4

Signed-off-by: Hai Yan <oeyh@amazon.com>

---------

Signed-off-by: Hai Yan <oeyh@amazon.com>
Davidding4718 pushed a commit to Davidding4718/data-prepper that referenced this pull request Apr 25, 2025
* Remove step to clean up replication slot

Signed-off-by: Hai Yan <oeyh@amazon.com>

* Update table filter config

Signed-off-by: Hai Yan <oeyh@amazon.com>

* Fix query for mysql 8.4

Signed-off-by: Hai Yan <oeyh@amazon.com>

---------

Signed-off-by: Hai Yan <oeyh@amazon.com>
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