dlmarion commented on PR #4151:
URL: https://github.com/apache/accumulo/pull/4151#issuecomment-1887152669

   Good catch. I wonder if instead of the conditional that is currently in the 
Compactor (below) we should just put while loop that waits for 
`!running.isEmpty()`. That way the main thread will wait for the background 
thread to be invoked and make initial progress.
   
   ```
               List<CompactionInfo> running =
                   
org.apache.accumulo.server.compaction.FileCompactor.getRunningCompactions();
               if (!running.isEmpty()) {
               ...
               } else {
                 LOG.error("Waiting on compaction thread to finish, but no 
RUNNING compaction");
               }
   ```


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

Reply via email to