You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "nija-at (via GitHub)" <gi...@apache.org> on 2023/02/20 07:40:54 UTC
[GitHub] [spark] nija-at commented on a diff in pull request #40066: [SPARK-42498] [CONNECT][PYTHON] Reduce spark connect service retries
nija-at commented on code in PR #40066:
URL: https://github.com/apache/spark/pull/40066#discussion_r1111573178
##########
python/pyspark/sql/connect/client.py:
##########
@@ -772,6 +772,7 @@ def __exit__(
if isinstance(exc_val, BaseException):
# Swallow the exception.
if self._can_retry(exc_val):
+ logger.debug(f"Server responded with retryable error: {exc_val}")
Review Comment:
If the service is unreachable for a moment and if the retry is going to fix it, it's not an "error".
It could be a warn but that'll pollute real warnings. I think it's debug.
--
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-unsubscribe@spark.apache.org
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