Skip to content

Retry for transient exceptions while doing cleanup for Hadoop Jobs#3177

Merged
drcrallen merged 3 commits intoapache:masterfrom
nishantmonu51:fixes-1828
Jun 23, 2016
Merged

Retry for transient exceptions while doing cleanup for Hadoop Jobs#3177
drcrallen merged 3 commits intoapache:masterfrom
nishantmonu51:fixes-1828

Conversation

@nishantmonu51
Copy link
Copy Markdown
Member

fixes #1828

@fjy
Copy link
Copy Markdown
Contributor

fjy commented Jun 22, 2016

👍

@fjy fjy added the Bug label Jun 22, 2016
@fjy fjy added this to the 0.9.2 milestone Jun 22, 2016
@nishantmonu51
Copy link
Copy Markdown
Member Author

travis failure with AnnouncerTest - https://travis-ci.org/druid-io/druid/jobs/139633994

import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.retry.RetryPolicies;
import org.apache.hadoop.io.retry.RetryProxy;
import org.apache.hadoop.ipc.Server;
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.

Unused import?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed.

@drcrallen
Copy link
Copy Markdown
Contributor

@nishantmonu51 can you make the title describe what the patch does?

Also is there any test which would be appropriate to add for this?

@fjy
Copy link
Copy Markdown
Contributor

fjy commented Jun 23, 2016

@drcrallen I think difficult to test

@nishantmonu51 nishantmonu51 changed the title fix 1828 Retry for transient exceptions while doing cleanup for Hadoop Jobs Jun 23, 2016
fs.delete(jobDir, true);
fs.delete(getJobClassPathDir(job.getJobName(), job.getWorkingDirectory()), true);
JobHelper.deleteWithRetry(fs, jobDir, true);
JobHelper.deleteWithRetry(fs, getJobClassPathDir(job.getJobName(), job.getWorkingDirectory()), true);
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.

Should this fire regardless of if the prior delete succeeds?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah, fixed.

@drcrallen
Copy link
Copy Markdown
Contributor

👍 after travis

@drcrallen drcrallen merged commit 2696b0c into apache:master Jun 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retry for transient exceptions while doing cleanup for Hadoop Jobs

3 participants