[
https://issues.apache.org/jira/browse/SPARK-54708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-54708:
-----------------------------------
Labels: pull-request-available (was: )
> Optimize ML cache cleanup with lazy directory creation
> ------------------------------------------------------
>
> Key: SPARK-54708
> URL: https://issues.apache.org/jira/browse/SPARK-54708
> Project: Spark
> Issue Type: Improvement
> Components: Connect
> Affects Versions: 4.1.0, 4.0.1
> Reporter: Xi Lyu
> Priority: Major
> Labels: pull-request-available
>
> In current implementation, during the session holder cleanup of non-ML
> sessions, in mlCache.clear() ([code
> link|https://github.com/apache/spark/blob/43f7936d7b3a4701e3d0fdb44663006cbe0db70b/sql/connect/server/src/main/scala/org/apache/spark/sql/connect/service/SessionHolder.scala#L381])
> , the offloadedModelsDir is also eagerly created and will be deleted, which
> will cause ~10 ms uncessary latency.
> We should make the directory creation lazy and avoid deleting empty
> directories when it is not needed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]