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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]