More verbose logging
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/37871813 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/37871813 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/37871813 Branch: refs/heads/master Commit: 3787181310597b7a6e633e745ba08209abd038a9 Parents: 0cb6ac0 Author: Alexey Goncharuk <alexey.goncha...@gmail.com> Authored: Wed Jul 12 18:28:57 2017 +0300 Committer: Alexey Goncharuk <alexey.goncha...@gmail.com> Committed: Wed Jul 12 18:28:57 2017 +0300 ---------------------------------------------------------------------- .../dht/preloader/GridDhtPartitionsExchangeFuture.java | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/37871813/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java index 5760f87..3b6fe91 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java @@ -1008,11 +1008,19 @@ public class GridDhtPartitionsExchangeFuture extends GridDhtTopologyFutureAdapte */ private void tryToPerformLocalSnapshotOperation() { try { + long start = U.currentTimeMillis(); + IgniteInternalFuture fut = cctx.snapshot() .tryStartLocalSnapshotOperation(discoEvt); if (fut != null) fut.get(); + + long end = U.currentTimeMillis(); + + if (log.isInfoEnabled()) + log.info("Snapshot initialization completed [topVer=" + exchangeId().topologyVersion() + + ", time=" + (end - start) + "ms]"); } catch (IgniteCheckedException e) { U.error(log, "Error while starting snapshot operation", e);