-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-9967][SPARK-10099][STREAMING] Renamed conf spark.streaming.backpressure.{enable-->enabled} and fixed deprecated annotations #8299
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,15 +76,15 @@ private[streaming] abstract class RateController(val streamUID: Int, rateEstimat | |
| val elements = batchCompleted.batchInfo.streamIdToInputInfo | ||
|
|
||
| for { | ||
| processingEnd <- batchCompleted.batchInfo.processingEndTime; | ||
| workDelay <- batchCompleted.batchInfo.processingDelay; | ||
| waitDelay <- batchCompleted.batchInfo.schedulingDelay; | ||
| processingEnd <- batchCompleted.batchInfo.processingEndTime | ||
| workDelay <- batchCompleted.batchInfo.processingDelay | ||
| waitDelay <- batchCompleted.batchInfo.schedulingDelay | ||
| elems <- elements.get(streamUID).map(_.numRecords) | ||
| } computeAndPublish(processingEnd, elems, workDelay, waitDelay) | ||
| } | ||
| } | ||
|
|
||
| object RateController { | ||
| def isBackPressureEnabled(conf: SparkConf): Boolean = | ||
| conf.getBoolean("spark.streaming.backpressure.enable", false) | ||
| conf.getBoolean("spark.streaming.backpressure.enabled", false) | ||
|
Member
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 idea here was that this flag hadn't been 'released' yet so OK to change the name without keeping the old one? The two changes in the PR were pretty unrelated right? still I can't imagine someone would really care about back-porting one and not be able to consume the other as they're minor.
Contributor
Author
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. Yes, for both. That's why went ahead with squashing both into one. |
||
| } | ||
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.
The semicolons where unnecessary and was being flagged by IntelliJ