ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: IGNITE-843 Additional validations for caches.
Date Fri, 05 Feb 2016 03:26:09 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 8fac3a607 -> a39a8d824


IGNITE-843 Additional validations for caches.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/a39a8d82
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/a39a8d82
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/a39a8d82

Branch: refs/heads/ignite-843-rc2
Commit: a39a8d824af695305380396b09ad031501912931
Parents: 8fac3a6
Author: vsisko <vsisko@gridgain.com>
Authored: Fri Feb 5 10:25:37 2016 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Fri Feb 5 10:25:37 2016 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/caches-controller.js             | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/a39a8d82/modules/control-center-web/src/main/js/controllers/caches-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/caches-controller.js b/modules/control-center-web/src/main/js/controllers/caches-controller.js
index 1346bd8..00badc2 100644
--- a/modules/control-center-web/src/main/js/controllers/caches-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/caches-controller.js
@@ -488,6 +488,10 @@ consoleModule.controller('cachesController', [
             if ($common.isEmptyString(item.name))
                 return showPopoverMessage($scope.ui, 'general', 'cacheName', 'Name should
not be empty');
 
+            if (item.memoryMode === 'OFFHEAP_VALUES' && !$common.isEmptyArray(item.domains))
+                return showPopoverMessage($scope.ui, 'memory', 'memoryMode',
+                    'Cannot have query indexing enabled while values are stored off-heap');
+
             if (item.memoryMode === 'OFFHEAP_TIERED' && !$common.isDefined(item.offHeapMaxMemory))
                 return showPopoverMessage($scope.ui, 'memory', 'offHeapMaxMemory',
                     'Off-heap max memory should be specified');
@@ -568,6 +572,10 @@ consoleModule.controller('cachesController', [
                 }
             }
 
+            if (item.cacheMode !== 'LOCAL' && item.rebalanceMode !== 'NONE' &&
item.rebalanceBatchSize === 0)
+                return showPopoverMessage($scope.ui, 'rebalance', 'rebalanceBatchSize',
+                    'Batch size should be more than 0 for not "NONE" rebalance mode', 10000);
+
             return true;
         }
 


Mime
View raw message