-
Notifications
You must be signed in to change notification settings - Fork 28.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
[SPARK-20391][Core] Rename memory related fields in ExecutorSummay #17700
Conversation
Change-Id: Ibf886c88bf655c83609c9e9ffa38d76c3ff9bb17
Test build #75978 has finished for PR 17700 at commit
|
Thanks for doing this quickly @jerryshao. I wasn't very clear about this on the jira, but my original idea was to add another level of nesting in the json, and put all the new memory related metrics under there (leaving
I think that organization would be a little more clear. @tgravescs wdyt? |
Yes that is what I was thinking from the conversation in the jira. We should do that now as to not cause more compatibility issues. |
Thanks @squito for clarification, sorry I misunderstood it. Regarding this new Also this PR #17625 exposes the Netty memory usage, should this memory usage also be shown here? I'm thinking of a extensible and reasonable place to track all the memory usages, so that our follow-up work will not break this API again. |
Change-Id: Ic1edf428c8b15c15434ce510b63dd4f60a0a1326
Test build #76015 has started for PR 17700 at commit |
Jenkins, retest this please |
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 pending tests (and one thing I just want to double check)
maxOnHeap <- status.maxOnHeapMem | ||
maxOffHeap <- status.maxOffHeapMem | ||
} yield { | ||
new MemoryMetrics(onHeapUsed, offHeapUsed, maxOnHeap, maxOffHeap) |
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 just want to double check -- there won't be any issues with event logs from spark 2.1, and only some of these fields being present, right? taking a quick look at 2.1 and your last change #14617, this looks right.
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.
Yes, this is to make sure memoryMetrics
field will only be existed when replaying new event logs, for Spark 2.1- event log, this field will not be present.
Test build #76040 has finished for PR 17700 at commit
|
@squito , do you have any further comment? Thanks! |
## What changes were proposed in this pull request? This is a follow-up of #14617 to make the name of memory related fields more meaningful. Here for the backward compatibility, I didn't change `maxMemory` and `memoryUsed` fields. ## How was this patch tested? Existing UT and local verification. CC squito and tgravescs . Author: jerryshao <[email protected]> Closes #17700 from jerryshao/SPARK-20391. (cherry picked from commit 66dd5b8) Signed-off-by: Imran Rashid <[email protected]>
thanks for the reminder, sorry it took me a couple days to circle back. merged to master and 2.2 And thanks a lot for this issue -- for taking another look at these after that last patch, realizing it was not ideal, then working quickly to get a fix in! |
What changes were proposed in this pull request?
This is a follow-up of #14617 to make the name of memory related fields more meaningful.
Here for the backward compatibility, I didn't change
maxMemory
andmemoryUsed
fields.How was this patch tested?
Existing UT and local verification.
CC @squito and @tgravescs .