Skip to content

fix: Retry on http2 GOAWAY error#14273

Merged
kodiakhq[bot] merged 4 commits intomainfrom
fix/shopify-goaway-retry
Oct 2, 2023
Merged

fix: Retry on http2 GOAWAY error#14273
kodiakhq[bot] merged 4 commits intomainfrom
fix/shopify-goaway-retry

Conversation

@disq
Copy link
Copy Markdown
Member

@disq disq commented Oct 2, 2023

Fixes #13865

@disq disq requested review from a team and bbernays October 2, 2023 13:45
@cq-bot cq-bot added the shopify label Oct 2, 2023
@disq disq marked this pull request as draft October 2, 2023 13:55
@disq disq marked this pull request as ready for review October 2, 2023 13:57
return ""
}

func isErrH2GoAway(err error) bool {
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.

why not check for errors.Is(http2.GoAwayError)?
https://pkg.go.dev/golang.org/x/net/http2#GoAwayError

Copy link
Copy Markdown
Member Author

@disq disq Oct 2, 2023

Choose a reason for hiding this comment

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

@candiduslynx http2.GoAwayError is a type and not a variable, errors.Is won't catch it. dfe06d9 (#14273) uses errors.As now, but it isn't as pretty.

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.

you need to match only the var he http2.GoAwayError as the receiver for Error() func is value, not pointer

@disq disq added the automerge Automatically merge once required checks pass label Oct 2, 2023
@kodiakhq kodiakhq bot merged commit 5d5471c into main Oct 2, 2023
@kodiakhq kodiakhq bot deleted the fix/shopify-goaway-retry branch October 2, 2023 14:59
kodiakhq bot pushed a commit that referenced this pull request Oct 2, 2023
🤖 I have created a release *beep* *boop*
---


## [3.1.2](plugins-source-shopify-v3.1.1...plugins-source-shopify-v3.1.2) (2023-10-02)


### Bug Fixes

* **deps:** Update github.com/apache/arrow/go/v14 digest to 00efb06 ([#14202](#14202)) ([fc8cc62](fc8cc62))
* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to 7ded38b ([#14246](#14246)) ([005891e](005891e))
* Retry on http2 GOAWAY error ([#14273](#14273)) ([5d5471c](5d5471c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@romerocw
Copy link
Copy Markdown

romerocw commented Oct 2, 2023

Based on your fix I restarted the sync on one of my smaller stores. I'll keep you posted on the progress.

hydratim pushed a commit to hydratim/cloudquery that referenced this pull request Oct 20, 2023
hydratim pushed a commit to hydratim/cloudquery that referenced this pull request Oct 20, 2023
🤖 I have created a release *beep* *boop*
---


## [3.1.2](cloudquery/cloudquery@plugins-source-shopify-v3.1.1...plugins-source-shopify-v3.1.2) (2023-10-02)


### Bug Fixes

* **deps:** Update github.com/apache/arrow/go/v14 digest to 00efb06 ([cloudquery#14202](cloudquery#14202)) ([fc8cc62](cloudquery@fc8cc62))
* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to 7ded38b ([cloudquery#14246](cloudquery#14246)) ([005891e](cloudquery@005891e))
* Retry on http2 GOAWAY error ([cloudquery#14273](cloudquery#14273)) ([5d5471c](cloudquery@5d5471c))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Shopify Fails to Retry on http2: server sent GOAWAY and closed the connection error

6 participants