allisonwang-db commented on code in PR #42235:
URL: https://github.com/apache/spark/pull/42235#discussion_r1313969873


##########
python/pyspark/testing/connectutils.py:
##########
@@ -170,6 +170,10 @@ def conf(cls):
         # Disable JVM stack trace in Spark Connect tests to prevent the
         # HTTP header size from exceeding the maximum allowed size.
         conf.set("spark.sql.pyspark.jvmStacktrace.enabled", "false")
+        # Make the server terminate reattachable streams every 1 second and 
123 bytes,
+        # to make the tests exercise reattach.
+        conf.set("spark.connect.execute.reattachable.senderMaxStreamDuration", 
"1s")
+        conf.set("spark.connect.execute.reattachable.senderMaxStreamSize", 
"123")

Review Comment:
   @HyukjinKwon I saw this error when running unit tests locally: 
`org.apache.spark.sql.AnalysisException: Cannot modify the value of a static 
config: spark.connect.execute.reattachable.senderMaxStreamDuration.`
   



-- 
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: reviews-unsubscr...@spark.apache.org

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


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

Reply via email to