Skip to content
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

[PLUGIN-1829] Add CloudSQLMySQLErrorDetailsProvider #526

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

psainics
Copy link
Contributor

@psainics psainics commented Dec 12, 2024

ErrorDetailsProvider - CloudSQLMySQL [Source|Sink] plugin

Jira : PLUGIN-1829

Description

Implement Program Failure Exception Handling in CloudSQLMySQL Source/Sink plugin to catch known errors

Code change

  • Added CloudSQLMySQLErrorDetailsProvider.java
  • Modified CloudSQLMySQLSink.java
  • Modified CloudSQLMySQLSource.java

E2E Changes

  • Adding Open and capture logs step when pipeline is expected to fail.

@psainics psainics added the build label Dec 12, 2024
@psainics psainics self-assigned this Dec 12, 2024
@psainics psainics marked this pull request as ready for review December 13, 2024 05:23
/**
* A custom ErrorDetailsProvider for CloudSQL MySQL plugins.
*/
public class CloudSQLMySQLErrorDetailsProvider extends DBErrorDetailsProvider {
Copy link
Member

Choose a reason for hiding this comment

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

why can't it just extend MySQLErrorDetailsProvider?

Copy link
Contributor Author

@psainics psainics Dec 13, 2024

Choose a reason for hiding this comment

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

Good, this will save duplicate code. 👍
Updated !


@Override
protected String getExternalDocumentationLink() {
return "https://dev.mysql.com/doc/mysql-errors/9.0/en/ ,https://cloud.google.com/sql/docs/mysql/error-messages";
Copy link
Member

Choose a reason for hiding this comment

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

Lets only use one link https://cloud.google.com/sql/docs/mysql/error-messages, the mysql one is mentioned in the cloud sql one anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants