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

GH-144: Isolate error classification logic into single, testable class #145

Merged
merged 2 commits into from
Sep 22, 2021
Merged

Conversation

C0urante
Copy link

Addresses #144

A new BigQueryErrorResponses class is added that isolates the logic for classifying error responses from BigQuery. Classes that used to perform their own error classification are updated to leverage this new class instead. An integration test suite is added for this new class that covers some but not all types of errors; some, such as backend errors and rate limit errors, are difficult or even impossible to test reliably.

The 2.0.x branch is targeted in order to leverage the new integration testing infrastructure introduced there. This can be backported to 1.6.x if there is significant demand and someone willing to file the PR.

@C0urante C0urante requested a review from a team September 17, 2021 16:02
Copy link

@gharris1727 gharris1727 left a comment

Choose a reason for hiding this comment

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

Those error messages were really strewn around, now they're all in one place and integration tested, amazing!

LGTM

@C0urante C0urante merged commit d2ff27c into confluentinc:2.0.x Sep 22, 2021
@C0urante C0urante deleted the gh-144 branch September 22, 2021 14:14
@C0urante C0urante mentioned this pull request Sep 23, 2021
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