Skip to content

Commit

Permalink
Limit verbose log line on scheduled migration cancellation
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Dec 4, 2024
1 parent fbd3bf0 commit 00795b2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ class DestinationMigrationCoordinator(
runningLock = false
}
} else if (!event.localNodeClusterManager()) {
logger.info("Cancelling the migration process.")
scheduledMigration?.cancel()
if (scheduledMigration != null && !scheduledMigration!!.isCancelled) {
logger.info("Cancelling the migration process.")
scheduledMigration?.cancel()
}
}
}

Expand Down

0 comments on commit 00795b2

Please sign in to comment.