juliuszsompolski commented on code in PR #42818:
URL: https://github.com/apache/spark/pull/42818#discussion_r1317561918
##########
connector/connect/common/src/main/scala/org/apache/spark/sql/connect/client/GrpcRetryHandler.scala:
##########
@@ -217,7 +217,23 @@ private[sql] object GrpcRetryHandler extends Logging {
*/
private[client] def retryException(e: Throwable): Boolean = {
e match {
- case e: StatusRuntimeException => e.getStatus.getCode ==
Status.Code.UNAVAILABLE
+ case e: StatusRuntimeException =>
+ val statusCode: Status.Code = e.getStatus.getCode
+
+ if (List(Status.Code.INTERNAL)
Review Comment:
Future proofing for adding more statusCodes in the future. A premature
optimization :-).
--
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]