[
https://issues.apache.org/jira/browse/SPARK-57371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herman van Hövell resolved SPARK-57371.
---------------------------------------
Fix Version/s: 4.2.0
4.1.3
4.0.4
5.0.0
Resolution: Fixed
Issue resolved by pull request 56435
[https://github.com/apache/spark/pull/56435]
> 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
> Assignee: Haiyang Sun
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.2.0, 4.1.3, 4.0.4, 5.0.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]