Skip to content

Commit bdd77fe

Browse files
committed
fix
1 parent 91cf1c6 commit bdd77fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/pyspark/tests/test_rdd.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,8 @@ def run_job(job_group, index):
834834
and then exits.
835835
"""
836836
try:
837-
self.sc.setJobGroup(job_group, "test rdd collect with setting job group")
838-
self.sc.parallelize([15]).map(lambda x: time.sleep(x)).collect(
839-
job_group, "test rdd collect with setting job group")
837+
self.sc.parallelize([15]).map(lambda x: time.sleep(x)) \
838+
.collectWithJobGroup(job_group, "test rdd collect with setting job group")
840839
is_job_cancelled[index] = False
841840
except Exception:
842841
# Assume that exception means job cancellation.

0 commit comments

Comments
 (0)