Haoyan Geng created SPARK-56926:
-----------------------------------

             Summary: Guard against null messageParameters in Connect error 
proto serialization
                 Key: SPARK-56926
                 URL: https://issues.apache.org/jira/browse/SPARK-56926
             Project: Spark
          Issue Type: Bug
          Components: Connect
    Affects Versions: 4.0.0, 5.0.0
            Reporter: Haoyan Geng


In ErrorUtils.throwableToProtoErrors (Spark Connect server), the call 
sparkThrowableBuilder.putAllMessageParameters(sparkThrowable.getMessageParameters)
 is unguarded. If a SparkThrowable implementation returns null from 
getMessageParameters() (violating the implicit non-null contract of the 
interface's default), putAllMessageParameters(null) throws a 
NullPointerException and crashes the FetchErrorDetails RPC.

When this happens, the client falls back to a degraded error reconstruction 
that drops the cause chain, hiding the underlying error from the user.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to