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

🐛 Source Shopify: fix one-time retry after Internal Server Error for BULK streams #37468

Merged
merged 5 commits into from
Apr 22, 2024

Conversation

bazarnov
Copy link
Collaborator

@bazarnov bazarnov commented Apr 22, 2024

What

Given this failed sync:
https://cloud.airbyte.com/workspaces/7542ce05-0378-49d9-a7ee-f4bce67f7402/connections/d94c6150-49f1-466a-8834-a3dc8e0a679e/job-history

There is a gap between how the source handles the Internal Server Error for BULK streams now, this PR is a fix for the bug.

How

  • added retry for ( ShopifyBulkExceptions.BulkJobBadResponse, ShopifyBulkExceptions.BulkJobUnknownError ) when there is no possibility to check the state of the BULK job, due to the Shopify Server Error.
  • covered with unit test

User Impact

No impact.

Copy link

vercel bot commented Apr 22, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Apr 22, 2024 1:59pm

@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Apr 22, 2024
@bazarnov bazarnov marked this pull request as ready for review April 22, 2024 11:25
@octavia-squidington-iv octavia-squidington-iv requested review from a team April 22, 2024 11:26
@bazarnov bazarnov requested review from strosek and maxi297 April 22, 2024 11:28
@bazarnov bazarnov self-assigned this Apr 22, 2024
Copy link
Contributor

@maxi297 maxi297 left a comment

Choose a reason for hiding this comment

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

I would like to avoid exposing a new field if we don't need to. Can we avoid that? Ping me anytime today and I'll approve asap once it is fixed

@octavia-squidington-iv octavia-squidington-iv requested a review from a team April 22, 2024 12:45
@bazarnov bazarnov requested a review from maxi297 April 22, 2024 13:42
Copy link
Contributor

@maxi297 maxi297 left a comment

Choose a reason for hiding this comment

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

Thanks for the change. This is very clean!

@bazarnov bazarnov merged commit 01381ae into master Apr 22, 2024
34 of 35 checks passed
@bazarnov bazarnov deleted the baz/source/shopify/fix-one-time-retry branch April 22, 2024 15:00
strosek pushed a commit that referenced this pull request Apr 24, 2024
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 connectors/source/shopify team/critical-connectors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants