marko-sisovic-db commented on code in PR #60454:
URL: https://github.com/apache/spark/pull/60454#discussion_r4586968405


##########
sql/connect/server/src/main/scala/org/apache/spark/sql/connect/utils/ErrorUtils.scala:
##########
@@ -355,6 +355,10 @@ private[connect] object ErrorUtils extends Logging {
       case e: Throwable if e.isInstanceOf[SparkThrowable] || NonFatal.apply(e) 
=>
         StatusProto.toStatusRuntimeException(buildStatusFromThrowable(e, 
sessionHolderOpt))
 
+      // Linkage errors are excluded by NonFatal but still need structured JVM 
error details.
+      case e: LinkageError =>

Review Comment:
   Agreed, leaving the decompression interceptor change for a separate 
follow-up.



##########
sql/connect/server/src/main/scala/org/apache/spark/sql/connect/utils/ErrorUtils.scala:
##########
@@ -355,6 +355,10 @@ private[connect] object ErrorUtils extends Logging {
       case e: Throwable if e.isInstanceOf[SparkThrowable] || NonFatal.apply(e) 
=>
         StatusProto.toStatusRuntimeException(buildStatusFromThrowable(e, 
sessionHolderOpt))
 
+      // Linkage errors are excluded by NonFatal but still need structured JVM 
error details.
+      case e: LinkageError =>
+        StatusProto.toStatusRuntimeException(buildStatusFromThrowable(e, 
sessionHolderOpt))

Review Comment:
   Fixed: fall back to UNKNOWN if enrichment fails. Added a regression test 
with a failing session extension.



##########
sql/connect/server/src/test/scala/org/apache/spark/sql/connect/service/FetchErrorDetailsHandlerSuite.scala:
##########
@@ -93,6 +96,54 @@ class FetchErrorDetailsHandlerSuite extends 
SharedSparkSession with ResourceHelp
     ThreadUtils.awaitResult(promise.future, 5.seconds)
   }
 
+  for (testError <- Seq(

Review Comment:
   Added StackOverflowError coverage to pin the UNKNOWN fallback.



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