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/07/06 03:51:00 UTC
[jira] [Updated] (SPARK-57949) TestDirectWorkerDispatcher picks a UDS socket path too long for macOS sun_path limit
[ https://issues.apache.org/jira/browse/SPARK-57949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-57949:
-----------------------------------
Labels: pull-request-available (was: )
> TestDirectWorkerDispatcher picks a UDS socket path too long for macOS sun_path limit
> ------------------------------------------------------------------------------------
>
> Key: SPARK-57949
> URL: https://issues.apache.org/jira/browse/SPARK-57949
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 5.0.0
> Reporter: Hyukjin Kwon
> Priority: Major
> Labels: pull-request-available
>
> In TestDirectWorkerHelpers.scala, shortTempBase() picks the first writable temp base among TMPDIR/TEMP/TMP/tmp. On macOS TMPDIR is a long /var/folders/<...>/T path (~48 chars); combined with the createTempDirectory random suffix and the socket leaf the bound Unix-domain socket path exceeds the 104-byte macOS sun_path limit, failing PythonUDFWorkerSpecificationSuite with 'OSError: AF_UNIX path too long'. This makes Build / Maven (JDK 21, MacOS-26) red. Fix: pick the SHORTEST usable base by its real (symlink-resolved) path, so /tmp (-> /private/tmp) is chosen over the long TMPDIR on macOS.
--
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