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-53132][CORE][TESTS][FOLLOWUP] Use Utils.listFiles in BlockManagerDecommissionIntegrationSuite
### What changes were proposed in this pull request?
This PR is a follow-up to fix the last instance which was missed due to the new line between `FileUtils` and `.listFiles`.
- #51856
### Why are the changes needed?
To simplify the usage consistently.
```scala
- def shuffleFiles: Seq[File] = {
- FileUtils
- .listFiles(new File(sparkTempDir), Array("data", "index"), true)
- .asScala
- .toSeq
- }
+ def shuffleFiles: Seq[File] = Utils.listFiles(new File(sparkTempDir)).asScala
+ .filter(f => Array("data", "index").exists(f.getName.endsWith)).toSeq
```
### Does this PR introduce _any_ user-facing change?
No, this is a test case change.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes#51865 from dongjoon-hyun/SPARK-53132-2.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
0 commit comments