-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Retry for transient exceptions while doing cleanup for Hadoop Jobs #3177
Conversation
fixes apache#1828
👍 |
travis failure with AnnouncerTest - https://travis-ci.org/druid-io/druid/jobs/139633994 |
@@ -44,6 +44,7 @@ | |||
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
@nishantmonu51 can you make the title describe what the patch does? Also is there any test which would be appropriate to add for this? |
@drcrallen I think difficult to test |
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, fixed.
👍 after travis |
fixes #1828