Commit aead822
[SPARK-54078][SS] Deflake StateStoreSuite
### What changes were proposed in this pull request?
Fix flakiness in this suite caused by occasional flakiness in maintenance thread and long maintenance duration. Instead test the functionality required (maintenance is called before unloading for deactivated instances) by adding a function that allows us to pause/unpause maintenance.
### Why are the changes needed?
Fix test flakiness
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Unit test
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #52783 from liviazhu/liviazhu-db/statestore-flakiness.
Authored-by: Livia Zhu <[email protected]>
Signed-off-by: Anish Shrigondekar <[email protected]>SPARK-40492: maintenance before unload
1 parent 146c2ba commit aead822
File tree
2 files changed
+25
-7
lines changed- sql/core/src
- main/scala/org/apache/spark/sql/execution/streaming/state
- test/scala/org/apache/spark/sql/execution/streaming/state
2 files changed
+25
-7
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1343 | 1343 | | |
1344 | 1344 | | |
1345 | 1345 | | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
1346 | 1352 | | |
1347 | 1353 | | |
1348 | 1354 | | |
| |||
1352 | 1358 | | |
1353 | 1359 | | |
1354 | 1360 | | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
1355 | 1365 | | |
1356 | 1366 | | |
1357 | 1367 | | |
| |||
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
| 1010 | + | |
1010 | 1011 | | |
1011 | 1012 | | |
1012 | 1013 | | |
| |||
1016 | 1017 | | |
1017 | 1018 | | |
1018 | 1019 | | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
| 1020 | + | |
| 1021 | + | |
1022 | 1022 | | |
1023 | 1023 | | |
1024 | 1024 | | |
| |||
1058 | 1058 | | |
1059 | 1059 | | |
1060 | 1060 | | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
1061 | 1064 | | |
1062 | 1065 | | |
1063 | 1066 | | |
1064 | 1067 | | |
1065 | 1068 | | |
1066 | 1069 | | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1067 | 1073 | | |
1068 | 1074 | | |
1069 | 1075 | | |
1070 | 1076 | | |
1071 | | - | |
| 1077 | + | |
1072 | 1078 | | |
1073 | 1079 | | |
1074 | 1080 | | |
| |||
2412 | 2418 | | |
2413 | 2419 | | |
2414 | 2420 | | |
2415 | | - | |
2416 | | - | |
2417 | | - | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
2418 | 2426 | | |
2419 | 2427 | | |
2420 | 2428 | | |
| |||
0 commit comments