Skip to content

[SPARK-20344][Scheduler] Duplicate call in FairSchedulableBuilder.addTaskSetManager#17647

Closed
snazy wants to merge 2 commits intoapache:masterfrom
snazy:20344-dup-call-master
Closed

[SPARK-20344][Scheduler] Duplicate call in FairSchedulableBuilder.addTaskSetManager#17647
snazy wants to merge 2 commits intoapache:masterfrom
snazy:20344-dup-call-master

Conversation

@snazy
Copy link
Copy Markdown
Member

@snazy snazy commented Apr 16, 2017

What changes were proposed in this pull request?

Eliminate the duplicate call to Pool.getSchedulableByName() in FairSchedulableBuilder.addTaskSetManager

How was this patch tested?

./dev/run-tests

s"when that file doesn't contain $poolName. Created $poolName with default " +
s"configuration (schedulingMode: $DEFAULT_SCHEDULING_MODE, " +
s"minShare: $DEFAULT_MINIMUM_SHARE, weight: $DEFAULT_WEIGHT)")
var poolName = if (properties != null) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

val?

DEFAULT_POOL_NAME
}
var parentPool = rootPool.getSchedulableByName(poolName)
if (parentPool == null && properties != null) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No need to check properties for null?

@SparkQA
Copy link
Copy Markdown

SparkQA commented Apr 17, 2017

Test build #3663 has finished for PR 17647 at commit 410df60.

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

@asfgit asfgit closed this in 07fd94e Apr 18, 2017
@snazy snazy deleted the 20344-dup-call-master branch December 24, 2017 22:06
peter-toth pushed a commit to peter-toth/spark that referenced this pull request Oct 6, 2018
…TaskSetManager

## What changes were proposed in this pull request?

Eliminate the duplicate call to `Pool.getSchedulableByName()` in `FairSchedulableBuilder.addTaskSetManager`

## How was this patch tested?

./dev/run-tests

Author: Robert Stupp <snazy@snazy.de>

Closes apache#17647 from snazy/20344-dup-call-master.
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.

3 participants