You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2016/02/09 10:26:04 UTC

[05/51] [abbrv] ignite git commit: IGNITE-843 Caches min values.

IGNITE-843 Caches min values.


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

Branch: refs/heads/ignite-843-rc3
Commit: 57b82a1dfc780b22af6670e24416a017496301fd
Parents: f29c2fd
Author: Alexey Kuznetsov <ak...@apache.org>
Authored: Mon Feb 8 10:51:22 2016 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Mon Feb 8 10:51:22 2016 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/caches-controller.js                 | 4 ++++
 .../src/main/js/controllers/models/caches.json                   | 3 +++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/57b82a1d/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 4ad6f77..7b8055a 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
@@ -572,6 +572,10 @@ consoleModule.controller('cachesController', [
                 }
             }
 
+            if (item.writeBehindFlushSize === 0 && item.writeBehindFlushFrequency === 0)
+                return showPopoverMessage($scope.ui, 'store', 'writeBehindFlushSize',
+                    'Both \'Flush frequency\' and \'Flush size\' are not allowed as 0');
+
             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);

http://git-wip-us.apache.org/repos/asf/ignite/blob/57b82a1d/modules/control-center-web/src/main/js/controllers/models/caches.json
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/models/caches.json b/modules/control-center-web/src/main/js/controllers/models/caches.json
index 9c9ef73..1853cf2 100644
--- a/modules/control-center-web/src/main/js/controllers/models/caches.json
+++ b/modules/control-center-web/src/main/js/controllers/models/caches.json
@@ -335,6 +335,7 @@
           "type": "number",
           "model": "sqlOnheapRowCacheSize",
           "placeholder": 10240,
+          "min": 1,
           "tip": [
             "Number of SQL rows which will be cached onheap to avoid deserialization on each SQL index access"
           ]
@@ -690,6 +691,7 @@
               "model": "writeBehindBatchSize",
               "disabled": "!backupItem.writeBehindEnabled",
               "placeholder": 512,
+              "min": 1,
               "tip": [
                 "Maximum batch size for write-behind cache store operations",
                 "Store operations (get or remove) are combined in a batch of this size to be passed to cache store"
@@ -725,6 +727,7 @@
               "model": "writeBehindFlushThreadCount",
               "disabled": "!backupItem.writeBehindEnabled",
               "placeholder": 1,
+              "min": 1,
               "tip": [
                 "Number of threads that will perform cache flushing"
               ]