You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "LuciferYang (via GitHub)" <gi...@apache.org> on 2026/09/22 15:00:51 UTC
[I] SparkDirectoryUtil hangs when no Gluten local directory can be created [gluten]
LuciferYang opened a new issue, #13097:
URL: https://github.com/apache/gluten/issues/13097
When every configured Spark local directory is uncreatable at startup (disk full, read-only mounts, or a `spark.local.dir` pointed at a file or a non-creatable path), `SparkDirectoryUtil.ROOTS` ends up empty, because the constructor logs and skips each directory whose creation throws.
The first `namespace(...).mkChildDirRoundRobin(...)` then constructs a `Namespace` whose `cycleLooper` is `Stream.continually(ROOTS).flatten`. Forcing that stream over an empty `ROOTS` hangs at the `val cycleLooper` initializer, so the caller spins forever with no error. The random variant (`mkChildDirRandomly`) instead throws `IllegalArgumentException: bound must be positive` from `Random.nextInt(0)`. Neither points at the real cause, and the round-robin hang is silent (needs a jstack to diagnose).
Reachable in a degraded environment where the job cannot succeed anyway, so the value is failing fast with a clear message instead of hanging or crashing obscurely. Consumers on this path include spill-dir creation (`VeloxIteratorApi`/`BoltIteratorApi`), the JNI workspace (`VeloxListenerApi`), and shuffle-write dirs (`ColumnarShuffleWriter`).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] SparkDirectoryUtil hangs when no Gluten local directory can be created [gluten]
Posted by "LuciferYang (via GitHub)" <gi...@apache.org>.
LuciferYang closed issue #13097: SparkDirectoryUtil hangs when no Gluten local directory can be created
URL: https://github.com/apache/gluten/issues/13097
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] SparkDirectoryUtil hangs when no Gluten local directory can be created [gluten]
Posted by "LuciferYang (via GitHub)" <gi...@apache.org>.
LuciferYang commented on issue #13097:
URL: https://github.com/apache/gluten/issues/13097#issuecomment-5957230870
Closing as not planned, with #13098. The hang only happens when every configured local directory fails to be created, and in that state Spark own local-dir initialization fails first, before SparkDirectoryUtil is reached. The window where Gluten alone has no usable local dir while Spark keeps running is too narrow to justify the change, which also carried an unrelated refactor.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org