HyukjinKwon commented on a change in pull request #35228:
URL: https://github.com/apache/spark/pull/35228#discussion_r785842136



##########
File path: python/pyspark/tests/test_worker.py
##########
@@ -191,8 +191,14 @@ def test_reuse_worker_of_parallelize_range(self):
         rdd = self.sc.parallelize(range(20), 8)

Review comment:
       @Yikun, maybe just run the eventually with the whole test here. e.g.)
   
   ```python
   def test_reuse_worker_of_parallelize_range(self):
       def check_reuse_worker_of_parallelize_range():
           rdd = self.sc.parallelize(range(20), 8)
           previous_pids = rdd.map(lambda x: os.getpid()).collect()
           current_pids = rdd.map(lambda x: os.getpid()).collect()
   
           for pid in current_pids:
               self.assertTrue(pid in previous_pids)
   
       eventually(check_reuse_worker_of_parallelize_range, 
catch_assertions=True)
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to