Skip to content

Commit

Permalink
Swallow exception in deleteTranslogFilesAsync to prevent shard failure
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
  • Loading branch information
gbbafna committed Feb 9, 2024
1 parent 50dcbf2 commit 699b571
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,14 @@ public void onFailure(Exception e) {
);
} catch (Exception e) {
onCompletion.run();
throw e;
logger.error(
() -> new ParameterizedMessage(
"Exception occurred while deleting translog for primaryTerm={} files={}",
primaryTerm,
files
),
e
);
}
}

Expand Down

0 comments on commit 699b571

Please sign in to comment.