-
Notifications
You must be signed in to change notification settings - Fork 627
[VL] Update shuffle write metrics per batch #11083
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,8 +61,8 @@ int32_t ShuffleWriter::numPartitions() const { | |
| return numPartitions_; | ||
| } | ||
|
|
||
| int64_t ShuffleWriter::totalBytesWritten() const { | ||
| return metrics_.totalBytesWritten; | ||
| int64_t ShuffleWriter::bytesWritten() const { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we simply modify the signature of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The write api can be easily modified, but the stop api is not, stop api collect and return whole shuffle metrics of task, I prefer do refactor work for api change in another pr and make current pr as simple as possible. |
||
| return writtenBytes_; | ||
| } | ||
|
|
||
| int64_t ShuffleWriter::totalBytesEvicted() const { | ||
|
|
||
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.
I think
VeloxUniffleColumnarShuffleWriteralso needs to be updated. It's using the same native partition writer as celeborn.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.
Uniffle does not call incBytesWritten and the logic of metrics collecting differs with local and celeborn, it's better to let related developer to change it.