Skip to content

not throwing config error - #36577

Merged
Xiaohan Song (xiaohansong) merged 9 commits into
masterfrom
xiaohan/config-error
Apr 5, 2024
Merged

Xiaohan Song (xiaohansong) merged 9 commits into
masterfrom
xiaohan/config-error

Conversation

@xiaohansong

@xiaohansong Xiaohan Song (xiaohansong) commented Mar 27, 2024 •

Copy link
Copy Markdown
Contributor

https://github.com/airbytehq/oncall/issues/4710

When we throw an exception in the source connector, it will go to IntegrationRunner.kt, in which it will generate an error trace message, where error type is dependent on the type of the exception, and then rethrow it, which is then to be caught in AirbyteExceptionHandler. In the handler it will then re-generate a trace message with system_error.

Thus if a configException goes into a source connector, we currently will generate 1 config_error trace message and 1 system_error trace message.

The fix is to not throw system_error in AirbyteExceptionHandler if the root cause of exception is config error.

Tested on postgres, behavior change now is that we will start retrying those syncs, which is not ideal but it aligns with the description from https://docs.google.com/document/d/1ywZazxJ5DO41V1afaHY_0UfKuMHeiqRqn8wborwTSkY/edit I'm not sure why we were not retrying before?

Screenshot 2024-04-01 at 11 05 28 AM

@vercel

vercel Bot commented Mar 27, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2024 8:51pm

@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added the CDK Connector Development Kit label Mar 27, 2024
val rootThrowable = ConnectorExceptionUtil.getRootConfigError(Exception(throwable))

if (ConnectorExceptionUtil.isConfigError(rootThrowable)) {
terminate()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

will this exit 1 or exit 0?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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


val rootThrowable = ConnectorExceptionUtil.getRootConfigError(Exception(throwable))

if (ConnectorExceptionUtil.isConfigError(rootThrowable)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since destinations also use this handler. Is the expected behavior shared by them as well?
cc: Joe Bell (@jbfbell)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This makes sense to me, so essentially if it's a config error, don't throw two errors?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

exactly - it will still exit 1, but we are not sending a system_error trace message anymore to platform if it's a config error.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense.

Can you file a follow-up with the platform to determine whether config errors should be retried? I think its ok for now

@xiaohansong

Xiaohan Song (xiaohansong) commented Apr 5, 2024 •

Copy link
Copy Markdown
Contributor Author

/publish-java-cdk

🕑 https://github.com/airbytehq/airbyte/actions/runs/8574924390
❌ Publish Java CDK version=0.29.5 failed!

@xiaohansong

Xiaohan Song (xiaohansong) commented Apr 5, 2024 •

Copy link
Copy Markdown
Contributor Author

/publish-java-cdk

🕑 https://github.com/airbytehq/airbyte/actions/runs/8575441137
✅ Successfully published Java CDK version=0.29.6!

This branch was successfully deployed

1 active deployment
Preview — 5f103fe5 Deployed Apr 5, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/connectors Connector related issues area/documentation Improvements or additions to documentation CDK Connector Development Kit connectors/source/mysql

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants