Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Sep 23, 2016

What changes were proposed in this pull request?

Backport #14269 to 2.0.

How was this patch tested?

Jenkins.

…ze configurable

This change adds a new configuration entry to specify the size of the spark listener bus event queue. The value for this config ("spark.scheduler.listenerbus.eventqueue.size") is set to a default to 10000.

Note:
I haven't currently documented the configuration entry. We can decide whether it would be appropriate to make it a public configuration or keep it as an undocumented one. Refer JIRA for more details.

Ran existing jobs and verified the event queue size with debug logs and from the Spark WebUI Environment tab.

Author: Dhruve Ashar <[email protected]>

Closes #14269 from dhruve/bug/SPARK-15703.
@zsxwing
Copy link
Member Author

zsxwing commented Sep 23, 2016

/cc @yhuai

throw new SparkException("spark.scheduler.listenerbus.eventqueue.size must be > 0!")
}
queueSize
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This part is kind of weird. Seems there is no need to make EVENT_QUEUE_CAPACITY and eventQueue lazy vals since we pass the spark context to the constructor?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is created in SparkContext's constructor before conf is created.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh i see. Thanks!

@yhuai
Copy link
Contributor

yhuai commented Sep 23, 2016

lgtm

@SparkQA
Copy link

SparkQA commented Sep 23, 2016

Test build #65840 has finished for PR 15222 at commit 45d3cd8.

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

@zsxwing
Copy link
Member Author

zsxwing commented Sep 23, 2016

Thanks! Merging to 2.0.

asfgit pushed a commit that referenced this pull request Sep 23, 2016
…ze configurable (branch 2.0)

## What changes were proposed in this pull request?

Backport #14269 to 2.0.

## How was this patch tested?

Jenkins.

Author: Dhruve Ashar <[email protected]>

Closes #15222 from zsxwing/SPARK-15703-2.0.
@zsxwing zsxwing closed this Sep 23, 2016
@zsxwing zsxwing deleted the SPARK-15703-2.0 branch September 23, 2016 22:00
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