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

feat: invalid query error handling #13900

Merged
merged 9 commits into from
Jun 24, 2024
Merged

Conversation

kimbor
Copy link
Member

@kimbor kimbor commented Jun 17, 2024

Description:
Improve error handling when a query contains an invalid parameter.

Related issue(s):
Fixes #13795

Signed-off-by: Kim Rader <kim.rader@swirldslabs.com>
@kimbor kimbor added this to the v0.52 milestone Jun 17, 2024
@kimbor kimbor self-assigned this Jun 17, 2024
Copy link

github-actions bot commented Jun 17, 2024

Node: Unit Test Results

  1 562 files    1 562 suites   1h 52m 7s ⏱️
111 850 tests 111 791 ✅ 59 💤 0 ❌
120 144 runs  120 085 ✅ 59 💤 0 ❌

Results for commit d7f60ad.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 17, 2024

Node: HAPI Test (Restart) Results

3 tests   3 ✅  6m 21s ⏱️
3 suites  0 💤
3 files    0 ❌

Results for commit d7f60ad.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 17, 2024

Node: HAPI Test (Token) Results

 20 files   20 suites   5m 54s ⏱️
265 tests 265 ✅ 0 💤 0 ❌
340 runs  340 ✅ 0 💤 0 ❌

Results for commit d7f60ad.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 17, 2024

Node: HAPI Test (Node Death Reconnect) Results

3 tests   3 ✅  5m 55s ⏱️
3 suites  0 💤
3 files    0 ❌

Results for commit d7f60ad.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Jun 17, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 2 lines in your changes missing coverage. Please review.

Project coverage is 67.71%. Comparing base (9973fae) to head (6099032).
Report is 55 commits behind head on develop.

Current head 6099032 differs from pull request most recent head d7f60ad

Please upload reports for the commit d7f60ad to get more accurate results.

Files Patch % Lines
...ra/node/app/workflows/query/QueryWorkflowImpl.java 90.90% 2 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #13900      +/-   ##
=============================================
+ Coverage      67.58%   67.71%   +0.12%     
- Complexity     36486    36687     +201     
=============================================
  Files           3732     3762      +30     
  Lines         149767   149852      +85     
  Branches       15571    15571              
=============================================
+ Hits          101223   101469     +246     
+ Misses         44179    44043     -136     
+ Partials        4365     4340      -25     

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

Copy link

github-actions bot commented Jun 17, 2024

Node: HAPI Test (Crypto) Results

 24 files   24 suites   12m 15s ⏱️
361 tests 361 ✅ 0 💤 0 ❌
368 runs  368 ✅ 0 💤 0 ❌

Results for commit d7f60ad.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 17, 2024

Node: HAPI Test (Misc) Results

 51 files   51 suites   23m 2s ⏱️
357 tests 357 ✅ 0 💤 0 ❌
375 runs  375 ✅ 0 💤 0 ❌

Results for commit d7f60ad.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 17, 2024

Node: HAPI Test (Time Consuming) Results

19 tests   19 ✅  23m 15s ⏱️
 4 suites   0 💤
 4 files     0 ❌

Results for commit d7f60ad.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 17, 2024

Node: HAPI Test (Smart Contract) Results

 72 files   72 suites   22m 38s ⏱️
616 tests 616 ✅ 0 💤 0 ❌
668 runs  668 ✅ 0 💤 0 ❌

Results for commit d7f60ad.

♻️ This comment has been updated with latest results.

@kimbor kimbor marked this pull request as ready for review June 17, 2024 21:17
@kimbor kimbor requested a review from a team June 17, 2024 21:17
@kimbor kimbor requested review from a team as code owners June 17, 2024 21:17
kimbor added 2 commits June 17, 2024 14:18
Signed-off-by: Kim Rader <kim.rader@swirldslabs.com>
Copy link
Contributor

@netopyr netopyr left a comment

Choose a reason for hiding this comment

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

We should discuss the solution. If we cannot parse the query, we should not send an arbitrary response type (TransactionGetReceiptResponse).

netopyr
netopyr previously approved these changes Jun 24, 2024
Copy link
Contributor

@netopyr netopyr left a comment

Choose a reason for hiding this comment

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

LGTM - thanks @kimbor

Copy link
Contributor

@netopyr netopyr left a comment

Choose a reason for hiding this comment

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

LGTM

@kimbor kimbor merged commit b5596c3 into develop Jun 24, 2024
40 checks passed
@kimbor kimbor deleted the 13795-invalid-query-error-handling branch June 24, 2024 20:06
netopyr added a commit that referenced this pull request Jun 24, 2024
* develop:
  chore: Extract key verification from HandleContext (#13937)
  feat: invalid query error handling (#13900)
  chore: add hapi test framework for dynamic address book transactions (#13874)
  docs: Add comment to explain `recId` and `v` fields of `EthTxData` (#13991)
  chore: refactor to use `ThrottleUsageSnapshot` (#13969)
  build: split publish of 'platform' and 'services' / do not publish blocknode  (#14015)
  chore: 13980 remove get node info (#13982)
  feat: Reduce services-hedera's usage of PlatformContext (#13652)
  chore: Extract entity num generation from HandleContext (#13933)
  test: 013376- Add end to end tests for crypto create max auto associations (#13545)
  chore: Upgrade Netty to Latest Stable Release Version 4.1.110 (#13833)
  docs: Added design doc for Util Service (#13958)

# Conflicts:
#	hedera-node/hedera-app/src/main/java/com/hedera/node/app/workflows/handle/flow/DispatchHandleContext.java
kimbor added a commit that referenced this pull request Jun 24, 2024
Signed-off-by: Kim Rader <kim.rader@swirldslabs.com>
netopyr pushed a commit that referenced this pull request Jun 25, 2024
Signed-off-by: Kim Rader <kim.rader@swirldslabs.com>
iwsimon added a commit that referenced this pull request Jun 28, 2024
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.

improve error handling for invalid queries
2 participants