Skip to content
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

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

Closed
wants to merge 1 commit into from

Conversation

bowenliang123
Copy link
Contributor

@bowenliang123 bowenliang123 commented Aug 13, 2024

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
Copy link
Contributor Author

bowenliang123 commented Aug 13, 2024

Similar PR in Trino. trinodb/trino#10313

Copy link
Contributor

@FMX FMX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@RexXiong RexXiong closed this in 4844c82 Aug 26, 2024
@RexXiong
Copy link
Contributor

Merge to main(v0.6.0)

@bowenliang123 bowenliang123 deleted the files-temp-dir branch August 26, 2024 06:44
wankunde pushed a commit to wankunde/celeborn that referenced this pull request Oct 11, 2024
### 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?

Closes apache#2680 from bowenliang123/files-temp-dir.

Authored-by: Bowen Liang <[email protected]>
Signed-off-by: Shuang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants