-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
xdsclient: Populate total_issued_requests count in LRS load report #7544
Conversation
3f2280b
to
353a856
Compare
353a856
to
0b6cafa
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7544 +/- ##
==========================================
- Coverage 82.07% 81.85% -0.23%
==========================================
Files 360 361 +1
Lines 27533 27825 +292
==========================================
+ Hits 22599 22775 +176
- Misses 3759 3853 +94
- Partials 1175 1197 +22
|
0b6cafa
to
5b14cb8
Compare
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.
LGTM, just one request for a test case.
assertString(xdsinternal.LocalityID{}.ToString): {RequestStats: load.RequestData{Succeeded: uint64(rpcCount - maxRequest + 50)}}, | ||
assertString(xdsinternal.LocalityID{}.ToString): {RequestStats: load.RequestData{ | ||
Succeeded: uint64(rpcCount - maxRequest + 50), | ||
Issued: uint64(rpcCount - maxRequest + 50), |
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.
Are there no tests that include failed calls? It would be nice to have at least one test case where succeeded != issued.
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.
Changed a couple of test cases to have both errors and successful RPCs.
Succeeded: (rpcCount - dropCount) / 2, | ||
Errored: (rpcCount - dropCount) / 2, |
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.
Can we make it so these aren't the same? I.e. if we reversed the two in code then the test would still pass. E.g. make it fail 1/4th and succeed in 3/4ths.
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.
Done.
…rpc#7544) * Populate isssued count in LRS load report * Test success, error and issued counts * Make pass/faiil fractions unequal
Fixes: #7538
This PR populates the total issued request count which is already being added by Java and c-core clients.
The
issued request
counter is incremented when a new request is started. The counter is reset when a load report is sent to the LRS serverRELEASE NOTES:
total_issued_requests
field.