You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2022/05/09 03:34:00 UTC

[jira] [Updated] (SPARK-39063) Fix potential risk of JVM crash and RocksDBIterator resource leak

     [ https://issues.apache.org/jira/browse/SPARK-39063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang Jie updated SPARK-39063:
-----------------------------
    Summary: Fix potential risk of JVM crash and RocksDBIterator resource leak  (was: Fix potential JVM crash and RocksDBIterator resource leak)

> Fix potential risk of JVM crash and RocksDBIterator resource leak
> -----------------------------------------------------------------
>
>                 Key: SPARK-39063
>                 URL: https://issues.apache.org/jira/browse/SPARK-39063
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 3.4.0
>            Reporter: Yang Jie
>            Priority: Minor
>
> There is lock contention between `RocksDBIterator.finalize()` and `RockDB.close()` method. If `RocksDB.close()` method is executed first, the `RocksDBIterator`s hold by `Finalizer` will not close before the `RockDB` close.
> If user use a `rocksdbjni` compile with `DEBUG_LEVEL=1` to enables all assertions of `rocksdbjni`(official `rocksdbjni` compile with `DEBUG_LEVEL=0` and diabled all assertions), above issue will lead to JVM crash. 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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