You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/03/12 15:02:56 UTC

[GitHub] [spark] attilapiros commented on a change in pull request #31818: [SPARK-34726][SQL][2.4] Fix collectToPython timeouts

attilapiros commented on a change in pull request #31818:
URL: https://github.com/apache/spark/pull/31818#discussion_r593238434



##########
File path: sql/core/src/test/scala/org/apache/spark/sql/DatasetSuite.scala
##########
@@ -1586,6 +1591,30 @@ class DatasetSuite extends QueryTest with SharedSQLContext {
       }
     }
   }
+
+  test("SPARK-34726: Fix collectToPython timeouts") {
+    val listener = new QueryExecutionListener {
+      override def onFailure(funcName: String, qe: QueryExecution, exception: Exception): Unit = {}
+
+      override def onSuccess(funcName: String, qe: QueryExecution, duration: Long): Unit = {
+        // Longer than 15s in `PythonServer.setupOneConnectionServer`

Review comment:
       Let's extract the 15000 into a `private[spark] var` as member:
   
   https://github.com/apache/spark/blob/6b18cc752379387dd13c009490b54be823cf2437/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala#L899
   
   And add a comment  above `// visible for testing`.
   Then we can speed up this single test.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org