Package org.apache.hadoop.fs.s3a.impl
Class BulkDeleteRetryHandler
java.lang.Object
org.apache.hadoop.fs.s3a.impl.AbstractStoreOperation
org.apache.hadoop.fs.s3a.impl.BulkDeleteRetryHandler
Handler for bulk delete retry events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis is an error string we see in exceptions when the XML parser failed: "Failed to parse XML document". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbulkDeleteRetried(software.amazon.awssdk.services.s3.model.DeleteObjectsRequest deleteRequest, Exception ex) Handler for failure of bulk delete requests.protected voidincrementStatistic(Statistic statistic) Increment a statistic by 1.protected voidincrementStatistic(Statistic statistic, long count) Increment a statistic by a specific value.Methods inherited from class org.apache.hadoop.fs.s3a.impl.AbstractStoreOperation
activateAuditSpan, getAuditSpan, getStoreContext
-
Field Details
-
XML_PARSE_BROKEN
This is an error string we see in exceptions when the XML parser failed: "Failed to parse XML document".- See Also:
-
-
Constructor Details
-
BulkDeleteRetryHandler
Constructor.- Parameters:
storeContext- context
-
-
Method Details
-
incrementStatistic
Increment a statistic by 1. This increments both the instrumentation and storage statistics.- Parameters:
statistic- The operation to increment
-
incrementStatistic
Increment a statistic by a specific value. This increments both the instrumentation and storage statistics.- Parameters:
statistic- The operation to incrementcount- the count to increment
-
bulkDeleteRetried
public void bulkDeleteRetried(software.amazon.awssdk.services.s3.model.DeleteObjectsRequest deleteRequest, Exception ex) Handler for failure of bulk delete requests.- Parameters:
deleteRequest- request which was retried.ex- exception
-