Skip to content

Fix shutdown and failover handling in RDS source plugin#5624

Merged
oeyh merged 2 commits into
opensearch-project:mainfrom
oeyh:rds/handle-shutdown-and-failover
Apr 18, 2025
Merged

Fix shutdown and failover handling in RDS source plugin#5624
oeyh merged 2 commits into
opensearch-project:mainfrom
oeyh:rds/handle-shutdown-and-failover

Conversation

@oeyh
Copy link
Copy Markdown
Collaborator

@oeyh oeyh commented Apr 18, 2025

Description

  • Fixes source plugin shutdown by adding missed resource cleanup code in a few places
  • Fixes Aurora failover handing by not shutting down stream worker on disconnect. Rather, let the client to restore connection by itself (in MySQL case) or let it throw exception and cause stream partition to be re-acquired (in Postgres case)
  • Adds more logging for information and for troubleshooting

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 2 commits April 16, 2025 15:10
Signed-off-by: Hai Yan <oeyh@amazon.com>
Signed-off-by: Hai Yan <oeyh@amazon.com>
@oeyh oeyh merged commit 6c70559 into opensearch-project:main Apr 18, 2025
44 of 47 checks passed
Davidding4718 pushed a commit to Davidding4718/data-prepper that referenced this pull request Apr 25, 2025
…roject#5624)

* Fix MySQL shutdown sequence

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

* Fix failover handling

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
…roject#5624)

* Fix MySQL shutdown sequence

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

* Fix failover handling

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