Skip to content

Commit 0bb556b

Browse files
riyaverm-dbattilapiros
authored andcommitted
[SPARK-49114][SS][FOLLOWUP] Add missing error classes into json definition file
### What changes were proposed in this pull request? Follow up to SPARK-49114 (apache#47616). The PR added sub-categories of "cannot load state store errors", but it missed to add definition of error class into `error-conditions.json` JSON file. ### Why are the changes needed? Newly added error classes from apache#47616 will be dangling ones without this PR. ### Does this PR introduce _any_ user-facing change? Yes, user will see the detailed error class to identify the issue better for the case of "cannot load state store" error. ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#47690 from riyaverm-db/sub-categorize-cannot-load-state-store-errors-follow-up. Authored-by: Riya Verma <[email protected]> Signed-off-by: Jungtaek Lim <[email protected]>
1 parent ac37ff8 commit 0bb556b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

common/utils/src/main/resources/error/error-conditions.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,26 @@
256256
"Error reading streaming state file of <fileToRead> does not exist. If the stream job is restarted with a new or updated state operation, please create a new checkpoint location or clear the existing checkpoint location."
257257
]
258258
},
259+
"HDFS_STORE_PROVIDER_OUT_OF_MEMORY" : {
260+
"message" : [
261+
"Could not load HDFS state store with id <stateStoreId> because of an out of memory exception."
262+
]
263+
},
264+
"INVALID_CHANGE_LOG_READER_VERSION" : {
265+
"message" : [
266+
"The change log reader version cannot be <version>."
267+
]
268+
},
269+
"INVALID_CHANGE_LOG_WRITER_VERSION" : {
270+
"message" : [
271+
"The change log writer version cannot be <version>."
272+
]
273+
},
274+
"ROCKSDB_STORE_PROVIDER_OUT_OF_MEMORY" : {
275+
"message" : [
276+
"Could not load RocksDB state store with id <stateStoreId> because of an out of memory exception."
277+
]
278+
},
259279
"SNAPSHOT_PARTITION_ID_NOT_FOUND" : {
260280
"message" : [
261281
"Partition id <snapshotPartitionId> not found for state of operator <operatorId> at <checkpointLocation>."

0 commit comments

Comments
 (0)