-
Notifications
You must be signed in to change notification settings - Fork 720
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
client: pay back WRU when the request fails #5941
Conversation
Signed-off-by: JmPotato <ghzpotato@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: JmPotato <ghzpotato@gmail.com>
} | ||
// A write request may also read data, which should be counted into the RRU cost. | ||
// This part should be counted even if the request does not succeed. | ||
kc.calculateReadCost(consumption, res) |
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.
Just curious, can this logic be leveraged by some one to intentionally issue volume of failing write requests, while no cost at all?
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.
Here only pay back the write bytes
part.
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
/merge |
@JmPotato: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 7eb528b
|
Codecov ReportBase: 75.22% // Head: 75.15% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5941 +/- ##
==========================================
- Coverage 75.22% 75.15% -0.07%
==========================================
Files 362 362
Lines 36232 36240 +8
==========================================
- Hits 27255 27236 -19
- Misses 6601 6629 +28
+ Partials 2376 2375 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: JmPotato ghzpotato@gmail.com
What problem does this PR solve?
Issue Number: ref #5851.
What is changed and how does it work?
Check List
Tests
Release note