Skip to content

GOBBLIN-1566:fix resource leak due to Files.walk and replace guava's …#3417

Open
lujiefsi wants to merge 2 commits intoapache:masterfrom
lujiefsi:master
Open

GOBBLIN-1566:fix resource leak due to Files.walk and replace guava's …#3417
lujiefsi wants to merge 2 commits intoapache:masterfrom
lujiefsi:master

Conversation

@lujiefsi
Copy link
Copy Markdown

public static String getTempDirectory() throws IOException {
File tempDirBase = new File(System.getProperty("java.io.tmpdir"));
File tmpDirectory = Files.createTempDirectory(
tempDirBase.toPath(), System.currentTimeMillis() + "-").toFile();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we still want add "-" there? maybe change it to "-Gobblin"?

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