-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fixup!: #15981 Missing completion reports on index_parallel tasks #16042
fixup!: #15981 Missing completion reports on index_parallel tasks #16042
Conversation
...n/java/org/apache/druid/indexing/common/task/batch/parallel/ParallelIndexSupervisorTask.java
Outdated
Show resolved
Hide resolved
indexing-service/src/main/java/org/apache/druid/indexing/common/task/IndexTask.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/druid/indexing/common/task/batch/parallel/ParallelIndexSupervisorTask.java
Show resolved
Hide resolved
Thanks for the quick fix, @adithyachakilam . I have left a few comments. |
eb355d7
to
dc0f4fb
Compare
indexing-service/src/main/java/org/apache/druid/indexing/common/task/IndexTask.java
Outdated
Show resolved
Hide resolved
is this actually the behavior we want? it seems to contradict the behavior of other situations where we run a task inside another task where we expect the parent task to write its own reports |
looking at the code it seems to me all the other branches in ParallelIndexSupervisorTask call writeCompletionReports using the task report of the subtask generated (runRangePartitionMultiPhaseParallel, runSinglePhaseParallel, runHashPartitionMultiPhaseParallel) I see there's already this code
shouldn't we just call writeCompletionReports here instead? |
@georgew5656, That actually makes sense, fixed it! |
...n/java/org/apache/druid/indexing/common/task/batch/parallel/ParallelIndexSupervisorTask.java
Fixed
Show fixed
Hide fixed
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
Description
Fixed the bug where completion task reports are not being generated on
index_parallel
tasks.The fix made in #15981 misses to call the
writeCompletionReports
insideParallelIndexSupervisorTask#runSequential
.Also, this PR tries to address the comments made on #15981 and #15930 after merged.
Key changed/added classes in this PR
CompactionTask
IndexTask
ParallelIndexSupervisorTask
This PR has: