You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/06/11 12:48:00 UTC
[jira] [Updated] (SPARK-57371) Fix thread-unsafe Scala reflection race in ArrowDeserializers.resolveCompanion
[ https://issues.apache.org/jira/browse/SPARK-57371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-57371:
-----------------------------------
Labels: pull-request-available (was: )
> Fix thread-unsafe Scala reflection race in ArrowDeserializers.resolveCompanion
> ------------------------------------------------------------------------------
>
> Key: SPARK-57371
> URL: https://issues.apache.org/jira/browse/SPARK-57371
> Project: Spark
> Issue Type: Bug
> Components: Connect
> Affects Versions: 4.3.0
> Reporter: Haiyang Sun
> Priority: Major
> Labels: pull-request-available
>
> Fixes a thread-safety race condition in ArrowDeserializers.resolveCompanion() that causes `ScalaReflectionException: <none> is not a module` when used concurrently.
> Scala runtime reflection is not thread-safe (scala/bug#6240, #10431). The resolveCompanion method calls `mirror.classSymbol(...).companion.asModule` without synchronization. Under concurrent access - companion can race and return NoSymbol, causing `.asModule` to throw. The same issue affects `ScalaEnumEncoder` deserialization.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org