-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Reposition query submission spot for adaptive server selection #13327
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #13327 +/- ##
============================================
+ Coverage 61.75% 62.03% +0.28%
+ Complexity 207 198 -9
============================================
Files 2436 2545 +109
Lines 133233 139683 +6450
Branches 20636 21660 +1024
============================================
+ Hits 82274 86656 +4382
- Misses 44911 46476 +1565
- Partials 6048 6551 +503
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
// Record stats related to query submission just before sending the request. Otherwise, if the response is | ||
// received immediately, there's a possibility of updating query response stats before updating query | ||
// submission stats. | ||
_serverRoutingStatsManager.recordStatsAfterQuerySubmission(requestId, serverRoutingInstance.getInstanceId()); |
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.
Per the method name, this should be put within either markRequestSubmitted()
or markRequestSent()
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.
For low latency usecases at high qps, this can cause the issue mentioned in comments. Hence we update the stats just before submitting.
I've updated the method name to better convey this.
…e#13327) * Refactor ADSS querysubmission stats to avoid missing servers * Address review comments.
This is a followup to #13104
If there are cases of netty channel lock exceptions, we will avoid publishing stats for some servers as the exception handling breaks out of the loop. With this fix, we will submit stats for all picked servers and at the same time release for all servers.