Con el cliente de HBase de Cloud Bigtable para Java, ambos métodos pueden arrojar una RetriesExhaustedWithDetailsException. Se arroja esta excepción cuando una o más de las operaciones por lotes fallan por algún motivo (por ejemplo, porque falló la conexión). Contiene una lista de solicitudes fallidas, junto con detalles sobre la excepción que causó la falla de cada solicitud.
Por sí misma, una RetriesExhaustedWithDetailsException no indica por qué falló una solicitud. Debes llamar a RetriesExhaustedWithDetailsException#getCauses() para recuperar las excepciones detalladas de cada solicitud fallida. Luego, puedes registrar información sobre cada una de las excepciones detalladas, lo que te ayudará a diagnosticar la falla:
try {
mutator.mutate(mutationList);
} catch (RetriesExhaustedWithDetailsException e) {
for (Throwable cause : e.getCauses()) {
cause.printStackTrace();
}
throw e;
}
También se puede generar una excepción cuando llamas a flush o close.
Se aplica el mismo manejo de errores.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-03-06 (UTC)"],[[["The HBase API allows batch operations through `Table#batch` and `BufferedMutator#mutate`, both of which can throw a `RetriesExhaustedWithDetailsException` if one or more operations fail."],["A `RetriesExhaustedWithDetailsException` alone doesn't specify the cause of failure; `RetriesExhaustedWithDetailsException#getCauses()` must be called to retrieve detailed exceptions for each failed request."],["Exceptions during batch operations can be handled by iterating through the detailed exceptions provided by `getCauses()` to diagnose the failure."],["The same exception handling process applies to errors that occur when calling `flush` or `close` methods in batch operations."]]],[]]