You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Zhang Jianguo (Jira)" <ji...@apache.org> on 2021/05/19 07:44:00 UTC
[jira] [Created] (SPARK-35441) InMemoryFileIndex load all files
into memroy
Zhang Jianguo created SPARK-35441:
-------------------------------------
Summary: InMemoryFileIndex load all files into memroy
Key: SPARK-35441
URL: https://issues.apache.org/jira/browse/SPARK-35441
Project: Spark
Issue Type: Improvement
Components: Spark Core
Affects Versions: 2.3.1
Reporter: Zhang Jianguo
When InMemoryFileIndex is initialated, it'll load all files of ${rootPath}. If there're thousands of files, it could lead to OOM.
https://github.com/apache/spark/blob/0b3758e8cdb3eaa9d55ce3b41ecad5fa01567343/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InMemoryFileIndex.scala#L66
--
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