You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Anish Shrigondekar (Jira)" <ji...@apache.org> on 2025/07/12 00:18:00 UTC
[jira] [Commented] (SPARK-52740) Fix NPE in HDFSBackedStateStoreProvider accessing StateStoreConf.sqlConf when checkpoint format version is >=2
[ https://issues.apache.org/jira/browse/SPARK-52740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18004799#comment-18004799 ]
Anish Shrigondekar commented on SPARK-52740:
--------------------------------------------
Fix merged here - [https://github.com/apache/spark/pull/51431]
Closing - thanks !
> Fix NPE in HDFSBackedStateStoreProvider accessing StateStoreConf.sqlConf when checkpoint format version is >=2
> --------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-52740
> URL: https://issues.apache.org/jira/browse/SPARK-52740
> Project: Spark
> Issue Type: Bug
> Components: Structured Streaming
> Affects Versions: 4.1.0
> Reporter: Livia Zhu
> Assignee: Livia Zhu
> Priority: Major
> Labels: pull-request-available
>
> Since StateStoreConf's sqlConf field is transient, it is set to null when the conf is serialized and deserialized. This causes a NPE in HDFSBackedStateStoreProvider when checkpoint format version >= 2 because it accesses the sqlConf field for the assert error message. We should store checkpoint format version as a field StateStoreConf directly so we do not need to access the transient sqlConf field.
--
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