apache / celeborn

Apache Celeborn is an elastic and high-performance service for shuffle and spilled data.
https://celeborn.apache.org/
Apache License 2.0
862 stars 351 forks source link

[CELEBORN-1560] Remove usages of deprecated Files.createTempDir of Guava #2680

Closed bowenliang123 closed 2 weeks ago

bowenliang123 commented 1 month ago

What changes were proposed in this pull request?

Why are the changes needed?

com.google.common.io.Files#createTempDir has been deprecated since long ago. java.nio.file.Files#createTempDirectory should be used instead, as suggested in Guava's API Javadoc. (https://guava.dev/releases/33.1.0-jre/api/docs/com/google/common/io/Files.html)

Does this PR introduce any user-facing change?

How was this patch tested?

bowenliang123 commented 1 month ago

Similar PR in Trino. https://github.com/trinodb/trino/pull/10313

RexXiong commented 2 weeks ago

Merge to main(v0.6.0)