You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ankur Dave (Jira)" <ji...@apache.org> on 2021/10/21 18:44:00 UTC

[jira] [Created] (SPARK-37089) ParquetFileFormat registers task completion listeners lazily, causing Python writer thread to segfault when off-heap vectorized reader is enabled

Ankur Dave created SPARK-37089:
----------------------------------

             Summary: ParquetFileFormat registers task completion listeners lazily, causing Python writer thread to segfault when off-heap vectorized reader is enabled
                 Key: SPARK-37089
                 URL: https://issues.apache.org/jira/browse/SPARK-37089
             Project: Spark
          Issue Type: Bug
          Components: PySpark, SQL
    Affects Versions: 3.2.0, 3.1.2, 3.0.3
            Reporter: Ankur Dave
            Assignee: Ankur Dave


The task completion listener that closes the vectorized reader is registered lazily in ParquetFileFormat#buildReaderWithPartitionValues(). Since task completion listeners are executed in reverse order of registration, it always runs before the Python writer thread can be interrupted.

This contradicts the assumption in https://github.com/apache/spark/pull/34245 that task completion listeners are registered bottom-up, preventing that fix from working properly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org