maksaska commented on code in PR #11793:
URL: https://github.com/apache/ignite/pull/11793#discussion_r1912442285


##########
modules/core/src/test/java/org/apache/ignite/internal/processors/performancestatistics/PerformanceStatisticsThinClientTest.java:
##########
@@ -169,6 +176,10 @@ public void testCacheOperation() throws Exception {
         checkCacheOperation(CACHE_REMOVE_ALL, cache -> 
cache.removeAll(Collections.singleton(3)));
 
         checkCacheOperation(CACHE_GET_AND_REMOVE, cache -> 
cache.getAndRemove(5));
+
+        checkCacheOperation(CACHE_PUT_ALL_CONFLICT, 
putAllConflict(Collections.singletonMap(6, 1)));
+
+        checkCacheOperation(CACHE_REMOVE_ALL_CONFLICT, 
removeAllConflict(Collections.singleton(6)));
     }

Review Comment:
   Added tests



##########
modules/core/src/test/java/org/apache/ignite/internal/processors/performancestatistics/PerformanceStatisticsThinClientTest.java:
##########
@@ -199,6 +210,36 @@ private void checkCacheOperation(OperationType op, 
Consumer<ClientCache<Object,
         assertEquals(1, ops.get());
     }
 
+    /**
+     * Cache {@link TcpClientCache#putAllConflict} operation perfomed
+     * @param map {@link Map} with entries for cache put all.
+     * @return cache {@link Consumer<ClientCache>}.
+     */
+    private Consumer<ClientCache<Object, Object>> putAllConflict(Map<Integer, 
Object> map) {
+        Map<Integer, T3<Object, GridCacheVersion, Long>> drMap = new 
HashMap<>();
+
+        GridCacheVersion confl = new GridCacheVersion(1, 0, 1, (byte)2);
+
+        map.forEach((key, value) -> drMap.put(key, new T3<>(value, confl, 
CU.EXPIRE_TIME_ETERNAL)));
+
+        return cache -> ((TcpClientCache<Object, 
Object>)cache).putAllConflict(drMap);
+    }
+
+    /**
+     * Cache {@link TcpClientCache#putAllConflict} operation perfomed

Review Comment:
   Fixed the typo



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to