-
Notifications
You must be signed in to change notification settings - Fork 442
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
[GLUTEN-7024][VL] Skip call collectMetrics when the task does not call next() #7025
Conversation
Thanks for opening a pull request! Could you open an issue for this pull request on Github Issues? https://github.com/apache/incubator-gluten/issues Then could you also rename commit message and pull request title in the following format?
See also: |
I think the issue is due to one side of join is an empty relation which cause Velox does not actually execute join operator. The pr description is confused.. we collect metrics when each task completion, so one task collect metrics would not affect another. |
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.
the fix lgtm, thank you @kecookier
@@ -301,16 +301,22 @@ void WholeStageResultIterator::collectMetrics() { | |||
return; | |||
} | |||
|
|||
const auto& taskStats = task_->taskStats(); | |||
if (taskStats.executionStartTimeMs == 0) { | |||
LOG(INFO) << "collectMetrics failed, taskStats is zero, maybe task never call next()."; |
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.
Skip collect task metrics since task did not call next()
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.
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.
@ulysses-you Can you review again?
Yes, you are right. |
* [GLUTEN-7024][VL] Skip call collectMetrics when the task does not call next() (#7025) * [GLUTEN-7130][CORE] Skip command execution when collect qe fallback summary (#7132) * [VL] Add config for show velox task metrics when finished (#6573) --------- Co-authored-by: zhaokuo <zhaokuo_game@163.com> Co-authored-by: Zhen Wang <643348094@qq.com> Co-authored-by: Yang Zhang <yangchuan.zy@alibaba-inc.com>
What changes were proposed in this pull request?
The issue is due to one side of join is an empty relation which cause Velox does not actually execute join operator. We collect metrics when each task completion, so one task collect metrics would not affect another.
(Fixes: #7024)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)