dlmarion commented on a change in pull request #2372:
URL: https://github.com/apache/accumulo/pull/2372#discussion_r760301214



##########
File path: 
test/src/main/java/org/apache/accumulo/test/compaction/ExternalDoNothingCompactor.java
##########
@@ -53,6 +53,9 @@ protected Runnable createCompactionJob(TExternalCompactionJob 
job, LongAdder tot
       LongAdder totalInputBytes, CountDownLatch started, CountDownLatch 
stopped,
       AtomicReference<Throwable> err) {
 
+    // Set this to true so that only 1 external compaction is run
+    this.shutdown = true;

Review comment:
       This method is called 
[here](https://github.com/apache/accumulo/blob/main/server/compactor/src/main/java/org/apache/accumulo/compactor/Compactor.java#L670)
 to create a Thread, then the Thread is started a few lines later. The shutdown 
variable is checked in the enclosing while loop, so I don't think it matters in 
this case.




-- 
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...@accumulo.apache.org

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


Reply via email to