You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2020/10/20 13:19:41 UTC

[GitHub] [ignite] ivandasch commented on a change in pull request #8374: IGNITE-13599 Switch tests should have better precision

ivandasch commented on a change in pull request #8374:
URL: https://github.com/apache/ignite/pull/8374#discussion_r508493731



##########
File path: modules/ducktests/src/main/java/org/apache/ignite/internal/ducktest/tests/cellular_affinity_test/CellularTxStreamer.java
##########
@@ -88,22 +97,37 @@
             }
 
             if (record) {
-                for (int i = 0; i < max.length; i++) {
-                    if (max[i] <= time) {
-                        System.arraycopy(max, i, max, i + 1, max.length - i - 1);
+                for (int i = 0; i < latencies.length; i++) {
+                    if (latencies[i] <= latency) {
+                        System.arraycopy(latencies, i, latencies, i + 1, latencies.length - i - 1);
+                        System.arraycopy(opStartTimes, i, opStartTimes, i + 1, opStartTimes.length - i - 1);
 
-                        max[i] = time;
+                        latencies[i] = latency;
+                        opStartTimes[i] = start;
 
                         break;
                     }
                 }
             }
 
             if (cnt % 1000 == 0)
-                log.info("APPLICATION_STREAMED " + cnt + " transactions [worst_latency=" + Arrays.toString(max) + "]");
+                log.info("APPLICATION_STREAMED " + cnt + " transactions [worst_latency=" + Arrays.toString(latencies) + "]");
+        }
+
+        List<String> result = new ArrayList<>();
+        Calendar calendar = Calendar.getInstance();

Review comment:
       Calendar? ORLY? Have you considered LocalDateTime?




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

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