[ https://issues.apache.org/jira/browse/SPARK-51573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jungtaek Lim resolved SPARK-51573. ---------------------------------- Fix Version/s: 4.0.0 Resolution: Fixed Issue resolved by pull request 50344 [https://github.com/apache/spark/pull/50344] > Fix Streaming State Checkpoint v2 checkpointInfo race condition > --------------------------------------------------------------- > > Key: SPARK-51573 > URL: https://issues.apache.org/jira/browse/SPARK-51573 > Project: Spark > Issue Type: Task > Components: Structured Streaming > Affects Versions: 4.0.0 > Reporter: Livia Zhu > Assignee: Livia Zhu > Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > > If two tasks are competing for the same RocksDB state store provider, they > could run into the following race condition: > > ||task 1||task 2|| > |load() - load version 0| | > |commit() - committed version 1| | > | |load() - load version 1| > | |commit() - committed version 2| > |getStateStoreCheckpointInfo - get checkpoint info for version 2 :(| | > We need to ensure that checkpoint info is retrieved atomically with the > commit() before the RocksDB instance lock is released. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org