Skip to content

Commit

Permalink
[hotfix][checkpointing] Beautify stack trace by stripping wrapping Co…
Browse files Browse the repository at this point in the history
…mpletionExceptions
  • Loading branch information
StephanEwen committed May 30, 2020
1 parent b66d16f commit 1af33f1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,9 @@ private void onTriggerFailure(
* @param throwable the reason of trigger failure
*/
private void onTriggerFailure(@Nullable PendingCheckpoint checkpoint, Throwable throwable) {
// beautify the stack trace a bit
throwable = ExceptionUtils.stripCompletionException(throwable);

try {
if (checkpoint != null && !checkpoint.isDiscarded()) {
int numUnsuccessful = numUnsuccessfulCheckpointsTriggers.incrementAndGet();
Expand Down

0 comments on commit 1af33f1

Please sign in to comment.