Skip to content

Commit

Permalink
don't resend reconciliation trigger on update meta exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed May 16, 2024
1 parent 2697ae1 commit afe2964
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,9 @@ internal class UpdateMetaTriggerHandlerImpl(
}

private suspend fun updateMeta(dm: DatasetManager, kr: KafkaRouter, msg: EventMessage) {
try {
updateMeta(dm, msg.userID, msg.datasetID)
} finally {
if (msg.eventSource != EventSource.FullReconciler)
kr.sendReconciliationTrigger(msg.userID, msg.datasetID, msg.eventSource)
}
updateMeta(dm, msg.userID, msg.datasetID)
if (msg.eventSource != EventSource.FullReconciler)
kr.sendReconciliationTrigger(msg.userID, msg.datasetID, msg.eventSource)
}

private suspend fun updateMeta(dm: DatasetManager, userID: UserID, datasetID: DatasetID) {
Expand Down

0 comments on commit afe2964

Please sign in to comment.