HADOOP-17547 Magic committer to downgrade abort in cleanup if list uploads fails with access denied (#3051)
Contributed by Bogdan Stolojan Change-Id: I32d6dc4f72087783a3ea12473d11690ac14fe3cb
This commit is contained in:
parent
52d055a7eb
commit
254d943126
|
@ -832,8 +832,8 @@ public abstract class AbstractS3ACommitter extends PathOutputCommitter
|
||||||
try {
|
try {
|
||||||
pending = ops.listPendingUploadsUnderPath(dest);
|
pending = ops.listPendingUploadsUnderPath(dest);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// raised if the listPendingUploads call failed.
|
// Swallow any errors given this is best effort
|
||||||
maybeIgnore(suppressExceptions, "aborting pending uploads", e);
|
LOG.debug("Failed to list pending uploads under {}", dest, e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!pending.isEmpty()) {
|
if (!pending.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue