Skip to content

fix(destinations): Set correct status code for context errors#486

Closed
erezrokah wants to merge 2 commits intocloudquery:mainfrom
erezrokah:fix/convert_ctx_error
Closed

fix(destinations): Set correct status code for context errors#486
erezrokah wants to merge 2 commits intocloudquery:mainfrom
erezrokah:fix/convert_ctx_error

Conversation

@erezrokah
Copy link
Copy Markdown
Member

Summary

This ensures relevant status code (codes.DeadlineExceeded or codes.Canceled) is set for the gRPC error.
Without this fix the status will always be codes.Unknown.


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 11, 2022

⏱️ Benchmark results

Comparing with 8dcbe8d

  • DefaultConcurrency-2 resources/s: 11,337 ⬆️ 5.51% increase vs. 8dcbe8d
  • Glob-2 ns/op: 147 ⬇️ 5.92% decrease vs. 8dcbe8d
  • TablesWithChildrenDefaultConcurrency-2 resources/s: 30,803 ⬆️ 10.70% increase vs. 8dcbe8d
  • BufferedScanner-2 ns/op: 10.2 ⬆️ 6.81% increase vs. 8dcbe8d
  • LogReader-2 ns/op: 30.7 ⬇️ 0.03% decrease vs. 8dcbe8d

Co-authored-by: candiduslynx <candiduslynx@users.noreply.github.com>
@erezrokah
Copy link
Copy Markdown
Member Author

Closing since I think the fixes in #530 should be enough for now. We can re-visit this in the future

@erezrokah erezrokah closed this Dec 27, 2022
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.

2 participants