You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "ifesdjeen (via GitHub)" <gi...@apache.org> on 2023/03/14 11:21:33 UTC

[GitHub] [cassandra-harry] ifesdjeen commented on a diff in pull request #17: Cassandra 17603

ifesdjeen commented on code in PR #17:
URL: https://github.com/apache/cassandra-harry/pull/17#discussion_r1135392169


##########
harry-core/src/harry/runner/Runner.java:
##########
@@ -275,9 +276,13 @@ public void runInternal() throws Throwable
                 {
                     Visitor visitor = poolConfiguration.visitor.make(run);
                     String name = String.format("%s-%d", poolConfiguration.prefix, i + 1);
+                    AtomicLong counter = new AtomicLong();
                     Interruptible thread = ExecutorFactory.Global.executorFactory().infiniteLoop(name, wrapInterrupt((state) -> {
                         if (state == Interruptible.State.NORMAL)
                             visitor.visit();
+                        long cnt = counter.incrementAndGet();
+                        if (cnt % 1000 == 0)
+                            logger.info("Visitor {} has cycled {} times", name, cnt);

Review Comment:
   Removed 



-- 
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: pr-unsubscribe@cassandra.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org