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

Rest API redis error: wrong number of arguments for 'mget' command #8606

Conversation

jascks
Copy link
Contributor

@jascks jascks commented Jun 21, 2024

Description:

It appears the following redis error happens quite frequently in testnet:

2024-06-18T19:40:31.232Z WARN e2b77dc8 Redis error during mget: ERR wrong number of arguments for 'mget' command
2024-06-18T19:40:31.233Z WARN e2b77dc8 x.x.x.x GET /api/v1/accounts/0.0.5897416?&limit=999 in 40 ms: 404 Not found NotFoundError Not found

If the keys provided to mget(), mgetBuffer() etc are empty, then the behavior is to throw this error. There are a few opportunities for transactions.getTransactionTimestamps() to return empty rows. It seems reasonable for cache.get() to look for this condition.

Related issue(s):

Fixes #8587

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@jascks jascks added bug Type: Something isn't working rest Area: REST API labels Jun 21, 2024
@jascks jascks added this to the 0.108.0 milestone Jun 21, 2024
@jascks jascks self-assigned this Jun 21, 2024
@jascks jascks linked an issue Jun 21, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jun 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.40%. Comparing base (9e53c18) to head (3ed6551).
Report is 15 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8606      +/-   ##
============================================
- Coverage     92.52%   92.40%   -0.13%     
- Complexity     7372     7489     +117     
============================================
  Files           895      914      +19     
  Lines         29553    29856     +303     
  Branches       3610     3641      +31     
============================================
+ Hits          27345    27588     +243     
- Misses         1387     1442      +55     
- Partials        821      826       +5     

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

@jascks jascks marked this pull request as ready for review June 24, 2024 13:09
@jascks jascks requested a review from a team June 24, 2024 13:09
Signed-off-by: Jeff Schmidt <[email protected]>
Signed-off-by: Jeff Schmidt <[email protected]>
Copy link

Copy link
Contributor

@edwin-greene edwin-greene left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link
Member

@mgoelswirlds mgoelswirlds left a comment

Choose a reason for hiding this comment

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

LGTM

@jascks jascks merged commit 035e078 into main Jun 24, 2024
29 checks passed
@jascks jascks deleted the 8587-rest-api-redis-error-wrong-number-of-arguments-for-mget-command branch June 24, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working rest Area: REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rest API redis error: wrong number of arguments for 'mget' command
4 participants