-
Notifications
You must be signed in to change notification settings - Fork 1.4k
use MinionEventObserver to track finer grained task progress status on worker #9432
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
Merged
npawar
merged 3 commits into
apache:master
from
klsince:track_fine_grained_task_progress_on_worker
Sep 21, 2022
Merged
use MinionEventObserver to track finer grained task progress status on worker #9432
npawar
merged 3 commits into
apache:master
from
klsince:track_fine_grained_task_progress_on_worker
Sep 21, 2022
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Author
|
for e.g. |
Codecov Report
@@ Coverage Diff @@
## master #9432 +/- ##
============================================
- Coverage 69.82% 69.76% -0.07%
+ Complexity 5095 4711 -384
============================================
Files 1889 1894 +5
Lines 100851 101041 +190
Branches 15328 15345 +17
============================================
+ Hits 70421 70487 +66
- Misses 25453 25575 +122
- Partials 4977 4979 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
2f60c85 to
ccaf80f
Compare
jackjlli
reviewed
Sep 20, 2022
...c/main/java/org/apache/pinot/controller/helix/core/minion/PinotHelixTaskResourceManager.java
Show resolved
Hide resolved
pinot-minion/src/main/java/org/apache/pinot/minion/event/MinionEventObservers.java
Outdated
Show resolved
Hide resolved
pinot-minion/src/main/java/org/apache/pinot/minion/event/MinionProgressObserver.java
Outdated
Show resolved
Hide resolved
pinot-minion/src/main/java/org/apache/pinot/minion/event/MinionProgressObserver.java
Show resolved
Hide resolved
...nion/tasks/segmentgenerationandpush/SegmentGenerationAndPushTaskProgressObserverFactory.java
Show resolved
Hide resolved
...pinot/plugin/minion/tasks/segmentgenerationandpush/SegmentGenerationAndPushTaskExecutor.java
Show resolved
Hide resolved
zhtaoxiang
reviewed
Sep 20, 2022
...c/main/java/org/apache/pinot/controller/helix/core/minion/PinotHelixTaskResourceManager.java
Show resolved
Hide resolved
...c/main/java/org/apache/pinot/controller/helix/core/minion/PinotHelixTaskResourceManager.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/apache/pinot/controller/helix/core/minion/PinotHelixTaskResourceManager.java
Show resolved
Hide resolved
pinot-minion/src/main/java/org/apache/pinot/minion/api/resources/PinotTaskProgressResource.java
Outdated
Show resolved
Hide resolved
pinot-minion/src/main/java/org/apache/pinot/minion/BaseMinionStarter.java
Show resolved
Hide resolved
pinot-minion/src/main/java/org/apache/pinot/minion/event/MinionProgressObserver.java
Outdated
Show resolved
Hide resolved
...pinot/plugin/minion/tasks/segmentgenerationandpush/SegmentGenerationAndPushTaskExecutor.java
Show resolved
Hide resolved
pinot-minion/src/main/java/org/apache/pinot/minion/event/MinionEventObservers.java
Show resolved
Hide resolved
jackjlli
reviewed
Sep 20, 2022
pinot-minion/src/main/java/org/apache/pinot/minion/event/MinionProgressObserver.java
Outdated
Show resolved
Hide resolved
pinot-minion/src/main/java/org/apache/pinot/minion/BaseMinionStarter.java
Show resolved
Hide resolved
zhtaoxiang
approved these changes
Sep 21, 2022
jackjlli
approved these changes
Sep 21, 2022
61yao
pushed a commit
to 61yao/pinot
that referenced
this pull request
Oct 3, 2022
…n worker (apache#9432) * use MinionEventObserver to track finer grained task progress status in memory * UTs and refine * cr and more UTs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR reuses MinionEventObserver interface to track and report fine-grained task progress status.
Today, helix task status like RUNNING is used to indicate task progress status, but that's very coarse grained. e.g. for some long running data ingestion task, one can see 'RUNNING' status lasts for many minutes, which provides little info for the users about what's really going on in the tasks.
With the new MinionEventObserver.notifyProgress() method, the task implementor can use it to report finer grained progress status, like downloading files (n out of N), generating, compressing, and uploading segments (n out of N) etc.
The
fullstack trace upon task failure is also tracked and kept around for a configured period to help debug the task failure.Release note