You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jungtaek Lim (Jira)" <ji...@apache.org> on 2024/06/27 08:54:00 UTC
[jira] [Resolved] (SPARK-48586) Remove lock acquisition in doMaintenance() by making a deep copy of file mappings in RocksDBFileManager in load()
[ https://issues.apache.org/jira/browse/SPARK-48586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jungtaek Lim resolved SPARK-48586.
----------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved via https://github.com/apache/spark/pull/46942
> Remove lock acquisition in doMaintenance() by making a deep copy of file mappings in RocksDBFileManager in load()
> -----------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-48586
> URL: https://issues.apache.org/jira/browse/SPARK-48586
> Project: Spark
> Issue Type: Improvement
> Components: Structured Streaming
> Affects Versions: 3.4.3
> Reporter: Riya Verma
> Assignee: Riya Verma
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> Currently the lock of the *RocksDB* state store is acquired when uploading the snapshot inside maintenance tasks when change log checkpointing is enabled, which causes lock contention between query processing tasks and state maintenance thread. We want to eliminate lock contention to decrease latency of streaming queries so lock acquisition inside maintenance tasks should be avoided. This can introduce race conditions between task and maintenance threads. By making a deep copy of {{versionToRocksDBFiles}} and {{localFilesToDfsFiles}} in {*}RocksDBFileManager{*}, we can ensure that the file manager state is not updated by task thread when background snapshot uploading tasks attempt to upload a snapshot.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org