Skip to content

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

Closed
bowenliang123 wants to merge 1 commit intoapache:mainfrom
bowenliang123:files-temp-dir
Closed

[CELEBORN-1560] Remove usages of deprecated Files.createTempDir of Guava#2680
bowenliang123 wants to merge 1 commit intoapache:mainfrom
bowenliang123:files-temp-dir

Conversation

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

bowenliang123 commented Aug 13, 2024

Similar PR in Trino. trinodb/trino#10313

Copy link
Copy Markdown
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
Copy Markdown
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 <liangbowen@gf.com.cn>
Signed-off-by: Shuang <lvshuang.xjs@alibaba-inc.com>
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