-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add query task count to statistics field of QueryCompletedEvent #13334
Conversation
viczhang861
commented
Sep 4, 2019
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
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 % nit
@@ -26,6 +26,7 @@ | |||
private final Duration queuedTime; | |||
private final Optional<Duration> analysisTime; | |||
|
|||
private final int peakRunningTaskCount; |
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.
nit: How about simply peakRunningTasks
(similarly to completedSplits
)
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.
Most other classes use peakRunningTaskCount, let's keep as it is
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.
In query stats it is peakRunningTasks
: https://github.com/prestodb/presto/blob/master/presto-main/src/main/java/com/facebook/presto/execution/QueryStats.java#L58.
In SqlQueryManager
it is peakRunningTasks
, peakRunningTasksStat
: https://github.com/prestodb/presto/blob/master/presto-main/src/main/java/com/facebook/presto/execution/SqlQueryManagerStats.java#L94
Only in QueryStateMachine
it is peakRunningTaskCount
(because of currentRunningTaskCount
).
Thus for consistency i would keep it as peakRunningTasks
.
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.
QueryStats
uses totalTasks
first, then SqlQueryManagerStats
uses peakRunningTasks
as it is constructed from QueryStats
Given completedSplits
is already used here, it makes sense to keep the same style, but let's use peakRunningTaskCount
in other places whenever possible.
946996d
to
90f7a82
Compare