Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

jerryshao
Copy link
Contributor

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 .

Change-Id: Ibf886c88bf655c83609c9e9ffa38d76c3ff9bb17
@SparkQA
Copy link

SparkQA commented Apr 20, 2017

Test build #75978 has finished for PR 17700 at commit 135e233.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@squito
Copy link
Contributor

squito commented Apr 20, 2017

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 maxmemory and memoryUsed as they were for compatibility), eg.:

{
  "id" : "1",
  "hostPort" : "172.22.0.167:51490",
   ...
  "memoryMetrics": {
    "usedOnHeapStorageMemory": ...,
    "usedOffHeapStorageMemory": ...,
    ...
  }
}

I think that organization would be a little more clear.

@tgravescs wdyt?

@tgravescs
Copy link
Contributor

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.

@jerryshao
Copy link
Contributor Author

Thanks @squito for clarification, sorry I misunderstood it.

Regarding this new memoryMetrics, will all the memory related metrics be shown here, like what you mentioned in the JIRA?

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
@SparkQA
Copy link

SparkQA commented Apr 21, 2017

Test build #76015 has started for PR 17700 at commit e1d618b.

@squito
Copy link
Contributor

squito commented Apr 21, 2017

Jenkins, retest this please

Copy link
Contributor

@squito squito left a 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)
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@SparkQA
Copy link

SparkQA commented Apr 21, 2017

Test build #76040 has finished for PR 17700 at commit e1d618b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@jerryshao
Copy link
Contributor Author

@squito , do you have any further comment? Thanks!

asfgit pushed a commit that referenced this pull request Apr 26, 2017
## 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]>
@asfgit asfgit closed this in 66dd5b8 Apr 26, 2017
@squito
Copy link
Contributor

squito commented Apr 26, 2017

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants