Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/14407#discussion_r72868588
--- Diff: core/src/test/scala/org/apache/spark/StatusTrackerSuite.scala ---
@@ -61,29 +60,29 @@ class StatusTrackerSuite extends SparkFunSuite with
Matchers with LocalSparkCont
sc = new SparkContext("local", "test", new SparkConf(false))
// Passing `null` should return jobs that were not run in a job group:
val defaultJobGroupFuture = sc.parallelize(1 to 1000).countAsync()
- val defaultJobGroupJobId = eventually(timeout(10 seconds)) {
+ val defaultJobGroupJobId = eventually(timeout(10.seconds)) {
defaultJobGroupFuture.jobIds.head
}
- eventually(timeout(10 seconds)) {
+ eventually(timeout(10.seconds)) {
sc.statusTracker.getJobIdsForGroup(null).toSet should be
(Set(defaultJobGroupJobId))
}
// Test jobs submitted in job groups:
sc.setJobGroup("my-job-group", "description")
sc.statusTracker.getJobIdsForGroup("my-job-group") should be
(Seq.empty)
val firstJobFuture = sc.parallelize(1 to 1000).countAsync()
- val firstJobId = eventually(timeout(10 seconds)) {
+ val firstJobId = eventually(timeout(10.seconds)) {
firstJobFuture.jobIds.head
}
- eventually(timeout(10 seconds)) {
+ eventually(timeout(10.seconds)) {
sc.statusTracker.getJobIdsForGroup("my-job-group") should be
(Seq(firstJobId))
}
- val secondJobFuture = sc.parallelize(1 to 1000).countAsync()
- val secondJobId = eventually(timeout(10 seconds)) {
- secondJobFuture.jobIds.head
+ val.secondJobFuture = sc.parallelize(1 to 1000).countAsync()
+ val.secondJobId = eventually(timeout(10.seconds)) {
+ .secondJobFuture.jobIds.head
}
- eventually(timeout(10 seconds)) {
+ eventually(timeout(10.seconds)) {
sc.statusTracker.getJobIdsForGroup("my-job-group").toSet should be (
- Set(firstJobId, secondJobId))
+ Set(firstJobId,.secondJobId))
--- End diff --
(Was this intentional?)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]