Commit b751374
[SPARK-55151] Fix RocksDBSuite testWithStateStoreCheckpointIds
### What changes were proposed in this pull request?
In ScalaTest, test expects a parameterless lambda (() => Any). However, the helper testWithStateStoreCheckpointIds incorrectly passed a lambda with a Boolean parameter into test.
As a result, the test body was never executed and was instead treated as a literal function value, causing tests to silently not run.
This PR fixes the helper function by ensuring the lambda passed to test has no parameters, while still correctly threading the enableStateStoreCheckpointIds flag into the test logic. It also updates affected tests that began failing after the fix to reflect the corrected behavior. Tests including
- loadEmpty tests
### Why are the changes needed?
So that future engineers who uses this util function will actually get their tests ran
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
This [run](https://github.com/zifeif2/spark/actions/runs/21275903248/job/61235478518?pr=7) was failing if we only fix the helper function, but the fixed unit tests are passing in this PR too
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #53936 from zifeif2/zifeif2-fix-rocksdb-suite.
Lead-authored-by: Zifei Feng <zifeifeng11@gmail.com>
Co-authored-by: zifeif2 <zifeifeng11@gmail.com>
Signed-off-by: Anish Shrigondekar <anish.shrigondekar@databricks.com>1 parent dec114a commit b751374
File tree
1 file changed
+14
-4
lines changed- sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state
1 file changed
+14
-4
lines changedLines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
3286 | 3286 | | |
3287 | 3287 | | |
3288 | 3288 | | |
3289 | | - | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
3290 | 3293 | | |
3291 | 3294 | | |
3292 | 3295 | | |
| |||
3315 | 3318 | | |
3316 | 3319 | | |
3317 | 3320 | | |
3318 | | - | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
3319 | 3325 | | |
3320 | 3326 | | |
3321 | 3327 | | |
| |||
4177 | 4183 | | |
4178 | 4184 | | |
4179 | 4185 | | |
4180 | | - | |
| 4186 | + | |
| 4187 | + | |
| 4188 | + | |
| 4189 | + | |
| 4190 | + | |
4181 | 4191 | | |
4182 | 4192 | | |
4183 | 4193 | | |
| |||
0 commit comments