maksaska commented on code in PR #277:
URL: https://github.com/apache/ignite-extensions/pull/277#discussion_r1665889591


##########
modules/cdc-ext/src/test/java/org/apache/ignite/cdc/AbstractReplicationTest.java:
##########
@@ -633,6 +637,40 @@ protected String[] hostAddresses(IgniteEx[] dest) {
     /** */
     protected abstract void checkConsumerMetrics(Function<String, Long> 
longMetric);
 
+    /** Checks the count for CDC metrics */
+    protected abstract void checkMetricsCount(int putCnt, int rmvCnt);
+
+    /** Checks the events count for CDC metrics */
+    protected void checkMetricsEventsCount(int putCnt, int rmvCnt, 
Supplier<Long> supplier) {
+        try {
+            waitForCondition(() -> supplier.get() == (long)(putCnt + rmvCnt) * 
KEYS_CNT * (backups + 1) *
+                (mode == CacheMode.PARTITIONED ? 1 : srcCluster.length), 
getTestTimeout());

Review Comment:
   Fixed this mistake



-- 
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