You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-51724][SS] RocksDB StateStore's lineage manager should be synchronized
### Why are the changes needed?
RocksDB State Store's Lineage Manager currently isn't synchronized, but it can be accessed by both DB loading and maintenance thread. In theory, it can cause wrong lineage:
1. maintenance thread get current lineage
2. task commit() adds a lineage from the lienage
3. maintenance thread does the truncation and store it back
In this case, the new lineage added by 2. is lost.
It should be fixed by simply synchronizing those operations.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Run existing unit tests
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes#50520 from siying/lineagemanagerrace.
Authored-by: Siying Dong <[email protected]>
Signed-off-by: Jungtaek Lim <[email protected]>
(cherry picked from commit 187adb8)
Signed-off-by: Jungtaek Lim <[email protected]>
0 commit comments