Removed heap metrics check for MVCC as Onheap cache is not supported - Fixes
@@ -273,7 +273,10 @@ public class CacheMetricsEntitiesCountTest extends GridCommonAbstractTest {
metrics.getOffHeapBackupEntriesCount());
assertEquals(cacheInfo + " offHeapPrimaryEntriesCnt", offHeapPrimaryEntriesCnt,
metrics.getOffHeapPrimaryEntriesCount());
+
+ if (!MvccFeatureChecker.forcedMvcc()) // Onheap cache is not supported in Mvcc mode.
assertEquals(cacheInfo + " heapEntriesCnt", heapEntriesCnt, metrics.getHeapEntriesCount());
+
assertEquals(cacheInfo + " size", cacheSize, metrics.getSize());
assertEquals(cacheInfo + " keySize", cacheSize, metrics.getKeySize());
assertEquals(cacheInfo + " isEmpty", cacheSize == 0, metrics.isEmpty());
@@ -294,7 +297,10 @@ public class CacheMetricsEntitiesCountTest extends GridCommonAbstractTest {
assertEquals(cacheInfo + " offHeapEntriesCnt", offHeapEntriesCnt, offHeapEntriesCntSum);
assertEquals(cacheInfo + " offHeapBackupEntriesCnt", offHeapBackupEntriesCnt, offHeapBackupEntriesCntSum);
assertEquals(cacheInfo + " offHeapPrimaryEntriesCnt", offHeapPrimaryEntriesCnt, offHeapPrimaryEntriesCntSum);
+
+ if (!MvccFeatureChecker.forcedMvcc()) // Onheap cache is not supported in Mvcc mode.
assertEquals(cacheInfo + " heapEntriesCnt", heapEntriesCnt, heapEntriesCntSum);
+
assertEquals(cacheInfo + " isEmpty", cacheSize == 0, isEmptySum);
}
}
