allowing to perform SQL querires over off-heap caches with one indexed type 
configured


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

Branch: refs/heads/master
Commit: 9ea769a25bcda322f628f8d4fcb47f67579db026
Parents: 92a41ba
Author: Vladislav Pyatkov <[email protected]>
Authored: Mon May 16 16:48:55 2016 +0300
Committer: Denis Magda <[email protected]>
Committed: Mon May 16 16:48:55 2016 +0300

----------------------------------------------------------------------
 .../cache/load/IgniteCacheRandomOperationBenchmark.java          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/9ea769a2/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/IgniteCacheRandomOperationBenchmark.java
----------------------------------------------------------------------
diff --git 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/IgniteCacheRandomOperationBenchmark.java
 
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/IgniteCacheRandomOperationBenchmark.java
index 539d4d9..bcea03c 100644
--- 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/IgniteCacheRandomOperationBenchmark.java
+++ 
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/load/IgniteCacheRandomOperationBenchmark.java
@@ -199,7 +199,8 @@ public class IgniteCacheRandomOperationBenchmark extends 
IgniteAbstractBenchmark
             CacheConfiguration configuration = 
cache.getConfiguration(CacheConfiguration.class);
 
             if (isClassDefinedInConfig(configuration)) {
-                if (configuration.getMemoryMode() == 
CacheMemoryMode.OFFHEAP_TIERED) {
+                if (configuration.getMemoryMode() == 
CacheMemoryMode.OFFHEAP_TIERED &&
+                    configuration.getQueryEntities().size() > 2) {
                     throw new IgniteException("Off-heap mode is unsupported by 
the load test due to bugs IGNITE-2982" +
                         " and IGNITE-2997");
                 }
@@ -560,7 +561,6 @@ public class IgniteCacheRandomOperationBenchmark extends 
IgniteAbstractBenchmark
     }
 
     /**
-     * @param cacheName Ignite cache name.
      * @return Operation.
      */
     @NotNull private Operation nextRandomOperation() {

Reply via email to