Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

[REEF-239] Catch all Throwables when trying to create symlinks #135

Closed
wants to merge 1 commit into from
Closed

[REEF-239] Catch all Throwables when trying to create symlinks #135

wants to merge 1 commit into from

Conversation

markusweimer
Copy link
Contributor

This attempts to copy files if the symbolic linking throws any Throwable, not just IOException.

JIRA:
REEF-239

This attempts to copy files if the symbolic linking throws any
`Throwable`, not just `IOException`.

JIRA:
  [REEF-239](https://issues.apache.org/jira/browse/REEF-239)

Pull Request:
  This closes
@asfbot
Copy link

asfbot commented Apr 3, 2015

Reef-pull-request-ubuntu #363 SUCCESS
This pull request looks good

@asfbot
Copy link

asfbot commented Apr 3, 2015

Reef-pull-request-windows #205 SUCCESS
This pull request looks good

@asfgit asfgit closed this in 940752b Apr 3, 2015
@@ -141,7 +141,8 @@ public void copyTo(final File destinationFolder) throws IOException {
this.localLibs.createSymbolicLinkTo(localFolder);
this.globalLibs.createSymbolicLinkTo(globalFolder);
this.globalFiles.createSymbolicLinkTo(globalFolder);
} catch (IOException e) {
} catch (final Throwable t) {
LOG.log(Level.FINE, "Can't symlink the files, copying them instead.", t);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should it be a warning or is it expected?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants