ascherbakoff commented on code in PR #7799:
URL: https://github.com/apache/ignite-3/pull/7799#discussion_r3051647254
##########
modules/runner/src/integrationTest/java/org/apache/ignite/internal/table/ItDataConsistencyTest.java:
##########
@@ -112,18 +122,31 @@ public void testDataConsistency() throws
InterruptedException {
readThreads[i].start();
}
+ log.info("Started {} writers", WRITE_PARALLELISM);
+ log.info("Started {} readers", READ_PARALLELISM);
+
long cur = System.currentTimeMillis();
+ long curOps = ops.sum();
+
while (cur + DURATION_MILLIS > System.currentTimeMillis()) {
Thread.sleep(1000);
- log.info("Waiting...");
+ long tmp = ops.sum();
+ if (tmp == curOps) {
+ throw new AssertionError("Test doesn't make progress");
+ }
Review Comment:
:ok
##########
modules/runner/src/integrationTest/java/org/apache/ignite/internal/table/ItDataConsistencyTest.java:
##########
@@ -112,18 +122,31 @@ public void testDataConsistency() throws
InterruptedException {
readThreads[i].start();
}
+ log.info("Started {} writers", WRITE_PARALLELISM);
+ log.info("Started {} readers", READ_PARALLELISM);
+
long cur = System.currentTimeMillis();
+ long curOps = ops.sum();
+
while (cur + DURATION_MILLIS > System.currentTimeMillis()) {
Thread.sleep(1000);
- log.info("Waiting...");
+ long tmp = ops.sum();
+ if (tmp == curOps) {
+ throw new AssertionError("Test doesn't make progress");
+ }
Review Comment:
🆗
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]