# IGNITE-709 Bug fix: partition exchange timeout occurs many times if no caches are configured.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/816da0a8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/816da0a8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/816da0a8 Branch: refs/heads/ignite-836_2 Commit: 816da0a8d9fcbe3b4b9d06fa5a53e1de1698ee09 Parents: 4ba5671 Author: sevdokimov <sevdoki...@gridgain.com> Authored: Thu May 14 13:18:34 2015 +0300 Committer: sevdokimov <sevdoki...@gridgain.com> Committed: Thu May 14 13:18:34 2015 +0300 ---------------------------------------------------------------------- .../distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/816da0a8/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 45d332c..4b8db00 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 @@ -1252,7 +1252,7 @@ public class GridDhtPartitionsExchangeFuture extends GridFutureAdapter<AffinityT cctx.kernalContext().timeout().removeTimeoutObject(old); GridTimeoutObject timeoutObj = new GridTimeoutObjectAdapter( - cctx.gridConfig().getNetworkTimeout() * cctx.gridConfig().getCacheConfiguration().length) { + cctx.gridConfig().getNetworkTimeout() * Math.max(1, cctx.gridConfig().getCacheConfiguration().length)) { @Override public void onTimeout() { if (isDone()) return;