Skip to content

Commit

Permalink
Fixed bug causing exception omision when transaction was aborted duri…
Browse files Browse the repository at this point in the history
…ng ChangeUnit execution and Mongock is trying to track FAILED entry. (#630)
  • Loading branch information
osantana85 committed Jul 10, 2023
1 parent 26eb0f0 commit 6341d69
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,12 @@ protected void executeAndLogChangeSet(String executionId, String executionHostna
} finally {
if (changeEntry != null) {
logChangeEntry(changeEntry, changeSetItem, alreadyExecuted);
trackChangeEntry(changeSetItem, changeEntry, alreadyExecuted);
try {
trackChangeEntry(changeSetItem, changeEntry, alreadyExecuted);
}
catch (Exception ex) {
logger.debug("failure when tracking changeEntry[{}]", changeEntry.getId());
}
}
}
}
Expand Down

0 comments on commit 6341d69

Please sign in to comment.