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

test: adds integration test for handling flightRuntimeExceptions. #203

Merged
merged 3 commits into from
Dec 9, 2024

Conversation

karel-rehor
Copy link
Contributor

@karel-rehor karel-rehor commented Dec 9, 2024

Related to https://github.com/influxdata/EAR/issues/5718

Proposed Changes

Adds a new integration test in ITQueryWrite to verify that errors are returned correctly, or more specifically that the Http2Exception: Header size exceeded exception no longer preempts more meaningful exceptions.

Checklist

  • CHANGELOG.md updated - should not be needed on added test
  • Rebased/mergeable
  • A test has been added if appropriate
  • Tests pass
  • Commit messages are conventional
  • Sign CLA (if not already signed)

@karel-rehor karel-rehor requested a review from bednar December 9, 2024 14:00
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.71%. Comparing base (7fd6c42) to head (979ca46).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #203   +/-   ##
=======================================
  Coverage   89.71%   89.71%           
=======================================
  Files          18       18           
  Lines         963      963           
  Branches      150      150           
=======================================
  Hits          864      864           
  Misses         39       39           
  Partials       60       60           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@bednar bednar left a comment

Choose a reason for hiding this comment

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

@karel-rehor thanks for PR 👍

LGTM 🚀

Motivated by EAR 5718, useful exception INVALID_ARGUMENT was being masked by
INTERNAL: http2 exception - Header size exceeded max allowed size (10240).
*/
public String makeLengthyTag(final int length, final int maxPartLength, final byte separator) {
Copy link
Member

Choose a reason for hiding this comment

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

Make this method private and move it to the bottom of the file. Public methods should come first, followed by private methods.

Suggested change
public String makeLengthyTag(final int length, final int maxPartLength, final byte separator) {
private String makeLengthyTag(final int length, final int maxPartLength, final byte separator) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated as suggested.

@karel-rehor karel-rehor merged commit c10e3bf into main Dec 9, 2024
8 checks passed
@karel-rehor karel-rehor deleted the tests/flightRuntimeException-handled branch December 9, 2024 14:41
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