-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-15703] [Scheduler][Core][WebUI] Make ListenerBus event queue size configurable #14269
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9c0cb44
[SPARK-15703] Make ListenerBus event queue configurable
dhruve 76d9af8
[SPARK-15703] Make ListenerBus event queue size ConfigEntry and updat…
dhruve 09e855e
[SPARK-15703] Fixes test failures to ensure single sc
dhruve 41dc57c
[SPARK-15703] Fixes import ordering
dhruve 889fe66
Remove extra line
dhruve 82feec4
[SPARK-15703] Remove unused import
dhruve File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[SPARK-15703] Fixes test failures to ensure single sc
- Loading branch information
commit 09e855ede8d4c7b01d48467b126368a048ea398d
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,7 @@ class ReceivedBlockHandlerSuite | |
| extends SparkFunSuite | ||
| with BeforeAndAfter | ||
| with Matchers | ||
| with LocalSparkContext | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The fact that this change was necessary is another weird code smell which suggests to me that putting SparkContext into the constructor was not a good idea. |
||
| with Logging { | ||
|
|
||
| import WriteAheadLogBasedBlockHandler._ | ||
|
|
@@ -77,9 +78,10 @@ class ReceivedBlockHandlerSuite | |
| rpcEnv = RpcEnv.create("test", "localhost", 0, conf, securityMgr) | ||
| conf.set("spark.driver.port", rpcEnv.address.port.toString) | ||
|
|
||
| sc = new SparkContext("local", "test", conf) | ||
| blockManagerMaster = new BlockManagerMaster(rpcEnv.setupEndpoint("blockmanager", | ||
| new BlockManagerMasterEndpoint(rpcEnv, true, conf, | ||
| new LiveListenerBus(new SparkContext("local", "test", conf)))), conf, true) | ||
| new LiveListenerBus(sc))), conf, true) | ||
|
|
||
| storageLevel = StorageLevel.MEMORY_ONLY_SER | ||
| blockManager = createBlockManager(blockManagerSize, conf) | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
Another post-hoc review/complaint: I think that
sizemight be misleading in this context where we're talking about a queue, since the size of a queue refers to the number of elements currently in the queue while its capacity refers to the maximum size that the queue can reach. This configuration name caused confusion in https://github.com/apache/spark/pull/18083/files/378206efb9f5c9628a678ba7defb536252f5cbcb#r118413115Instead, it might have been better to call it
capacity.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 agree. Capacity would have been a better choice.