Skip to content

[SPARK-19659][Core]Disable spark.reducer.maxReqSizeShuffleToMem - #18467

Closed
zsxwing wants to merge 4 commits into
apache:masterfrom
zsxwing:SPARK-21253
Closed

[SPARK-19659][Core]Disable spark.reducer.maxReqSizeShuffleToMem#18467
zsxwing wants to merge 4 commits into
apache:masterfrom
zsxwing:SPARK-21253

Conversation

@zsxwing

@zsxwingzsxwing commented Jun 29, 2017

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Disable spark.reducer.maxReqSizeShuffleToMem because it breaks the old shuffle service.

Credits to @wangyum

Closes#18466

How was this patch tested?

Jenkins

@zsxwing

Copy link
Copy Markdown
MemberAuthor

cc @JoshRosen As it's impossible to safely revert #16989, I just changed the default value to Long.MaxValue.

Comment threaddocs/configuration.md
By allowing it to limit the number of fetch requests, this scenario can be mitigated.
</td>
</tr>
<tr>

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't document it as it's not a safe feature now.

@SparkQA

Copy link
Copy Markdown

Test build #78924 has finished for PR 18467 at commit d49e3f1.

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

.doc("The blocks of a shuffle request will be fetched to disk when size of the request is " +
"above this threshold. This is to avoid a giant request takes too much memory.")
.bytesConf(ByteUnit.BYTE)
.createWithDefaultString("200m")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to put a .internal() here.

@JoshRosenJoshRosen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall. This seems like the cleanest fix for now to unblock the RC.

I do think this feature is valuable so we should see if there's a way to support it without requiring any backend changes to the shuffle service.

Let's make sure to update the "Fix Version" on the JIRA which added this feature so that it's clear that we've not shipped it in 2.2.x.

@zsxwingzsxwing changed the title [SPARK-21253][Core]Disable spark.reducer.maxReqSizeShuffleToMem[SPARK-19659][Core]Disable spark.reducer.maxReqSizeShuffleToMemJun 30, 2017
@cloud-fan

Copy link
Copy Markdown
Contributor

thanks, merging to master/2.2!

asfgit pushed a commit that referenced this pull request Jun 30, 2017
Disable spark.reducer.maxReqSizeShuffleToMem because it breaks the old shuffle service.
Credits to wangyum
Closes#18466
Jenkins
Author: Shixiong Zhu <shixiong@databricks.com>
Author: Yuming Wang <wgyumg@gmail.com>
Closes#18467 from zsxwing/SPARK-21253.
(cherry picked from commit 80f7ac3)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
@zsxwing
zsxwing deleted the SPARK-21253 branch June 30, 2017 03:05
@cloud-fan

Copy link
Copy Markdown
Contributor

@JoshRosen I'd argue that this feature is shipped in 2.2.x, as users can change the config value to enable it. Though this is kind of an experimental feature that breaks old shuffle service.

@cloud-fan

Copy link
Copy Markdown
Contributor

Oops, @wangyum sorry I forgot to set the author name... will be more careful next time :)

@SparkQA

Copy link
Copy Markdown

Test build #78943 has finished for PR 18467 at commit b8f022e.

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

Sign up for freeto 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.

5 participants

@zsxwing@SparkQA@cloud-fan@JoshRosen@wangyum