Livia Zhu created SPARK-52740:
---------------------------------

             Summary: 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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to