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

Make use of nio.Files to delete #448

Merged
merged 2 commits into from
Sep 4, 2020

Conversation

suryanshagnihotri
Copy link
Contributor

No description provided.

Files.delete(Paths.get(CacheUtil.getMetadataFilePath(remotePath, conf, i)));
}
} catch (Exception e) {
log.warn("Exception while deleting old files", e);

Choose a reason for hiding this comment

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

move index out of try and use it in catch to log the file on which we failed

Files.delete(Paths.get(mdFilePath));
Files.delete(Paths.get(localPath));
} catch (IOException ex) {
log.error("Could not delete cached files", ex);

Choose a reason for hiding this comment

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

log filename

@shubhamtagra shubhamtagra merged commit 266499c into qubole:master Sep 4, 2020
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.

2 participants