-
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
Adding cluster config to config number of concurrent tasks per instance for minion task: SegmentGenerationAndPushTaskGenerator #6468
Conversation
…TaskGenerator number of concurrent tasks per instance
...troller/src/main/java/org/apache/pinot/controller/helix/core/minion/ClusterInfoAccessor.java
Outdated
Show resolved
Hide resolved
...ache/pinot/controller/helix/core/minion/generator/SegmentGenerationAndPushTaskGenerator.java
Outdated
Show resolved
Hide resolved
@Override | ||
public int getNumConcurrentTasksPerInstance() { | ||
String numConcurrentTasksPerInstance = _clusterInfoAccessor | ||
.getClusterConfig(MinionConstants.SegmentGenerationAndPushTask.CONFIG_NUMBER_CONCURRENT_TASKS_PER_INSTANCE); |
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.
maybe use static import ?
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.
yeah, I just keep the same convention as in this file. Maybe good to have another PR to swipe all the conventions ;)
76e299e
to
fd21423
Compare
fd21423
to
9122244
Compare
Codecov Report
@@ Coverage Diff @@
## master #6468 +/- ##
===========================================
- Coverage 66.44% 43.82% -22.63%
===========================================
Files 1075 1332 +257
Lines 54773 65318 +10545
Branches 8168 9522 +1354
===========================================
- Hits 36396 28624 -7772
- Misses 15700 34302 +18602
+ Partials 2677 2392 -285
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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 otherwise
Description
SegmentGenerationAndPushTask.numConcurrentTasksPerInstance
to config number of concurrent tasks per instance for minion task: SegmentGenerationAndPushTaskGenerator