-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-48586][SS] Remove lock acquisition in doMaintenance() by making a deep copy of file mappings in RocksDBFileManager in load() #46942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
b8bf6cc
d9cfc70
1b64014
28451ca
a995091
25b9e96
d3cbf25
0bf9acd
6069779
7381b17
651ac74
d3354cf
7b4ebd6
c57f958
ddb97d6
5894a97
bcb2307
16c26fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,7 +78,7 @@ class RocksDB( | |
| checkpointDir: File, | ||
| version: Long, | ||
| numKeys: Long, | ||
| fileMappings: RocksDBFileMappings) { | ||
| capturedFileMappings: RocksDBFileMappings) { | ||
| def close(): Unit = { | ||
| silentDeleteRecursively(checkpointDir, s"Free up local checkpoint of snapshot $version") | ||
| } | ||
|
|
@@ -596,7 +596,7 @@ class RocksDB( | |
| // inside the uploadSnapshot() called below. | ||
| // If changelog checkpointing is enabled, snapshot will be uploaded asynchronously | ||
| // during state store maintenance. | ||
| oldSnapshots.addOne(latestSnapshot) | ||
| oldSnapshots += latestSnapshot | ||
|
||
| latestSnapshot = Some( | ||
| RocksDBSnapshot(checkpointDir, | ||
| newVersion, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: 2 more spaces (4 spaces for params in multi-lines)