-
Notifications
You must be signed in to change notification settings - Fork 141
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
Call LeaseManager for BatchQuery #3153
Conversation
Signed-off-by: Tomoyuki Morita <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3153 +/- ##
=========================================
Coverage 94.48% 94.48%
- Complexity 5426 5428 +2
=========================================
Files 528 528
Lines 15452 15456 +4
Branches 1025 1025
=========================================
+ Hits 14600 14604 +4
Misses 804 804
Partials 48 48
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Tomoyuki Morita <[email protected]>
Signed-off-by: Tomoyuki Morita <[email protected]>
Signed-off-by: Tomoyuki Morita <[email protected]>
CI failure is due to coverage caused by: #3063 |
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.
High level questions
- Does the current class model meet the requirements for extending to another implementation?
Lines 230 to 232 in cfe38d7
public DefaultLeaseManager defaultLeaseManager(Settings settings, StateStore stateStore) { | |
return new DefaultLeaseManager(settings, stateStore); | |
} |
- Will this code change to BatchQueryHandler and RefreshQueryHandler affect the present logic of examining ConcurrentRefreshJobRule?
Yes, DQS will internally check running jobs and limit new execution.
It won't affect. I excluded Batch query from ConcurrentRefreshJobRule. |
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.
Could you elaborate a little what was the issue?
DQS couldn't cover the Batch query to avoid too many concurrent execution. |
* Call LeaseManager for BatchQuery Signed-off-by: Tomoyuki Morita <[email protected]> * Reformat code Signed-off-by: Tomoyuki Morita <[email protected]> * Fix unit test for coverage Signed-off-by: Tomoyuki Morita <[email protected]> * Reformat Signed-off-by: Tomoyuki Morita <[email protected]> --------- Signed-off-by: Tomoyuki Morita <[email protected]> (cherry picked from commit 5b3cdd8) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Call LeaseManager for BatchQuery * Reformat code * Fix unit test for coverage * Reformat --------- (cherry picked from commit 5b3cdd8) Signed-off-by: Tomoyuki Morita <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Related Issues
n/a
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.