Hyukjin Kwon created SPARK-57949:
------------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]