-
Notifications
You must be signed in to change notification settings - Fork 42
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
[WIP] Implement find in REAPI #1339
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! I'll be able to test this in fluxion-go after the grow/shrink stuff.
} else if (!(json_str = json_dumps (o, JSON_INDENT (0)))) { | ||
json_decref (o); | ||
o = NULL; | ||
errno = ENOMEM; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means no memory? In the context of parsing a string into json what is that saying?
goto done; | ||
if (!(out_buf_c = strdup (out_buf.c_str ()))) { | ||
ctx->err_msg = __FUNCTION__; | ||
ctx->err_msg += ": ERROR: can't allocate memory\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I think the answer is here. Could a find request really run out of memory? My impression is that the json string would be tiny.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1339 +/- ##
========================================
- Coverage 75.7% 75.6% -0.1%
========================================
Files 112 112
Lines 16410 16427 +17
========================================
Hits 12426 12426
- Misses 3984 4001 +17
|
This PR adds
find
functionality to the REAPI. The primary client will be the Fluence and FluxQueue projects.The PR is WIP pending client testing and discussion about how to implement testing in Fluxion.