You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "DomGarguilo (via GitHub)" <gi...@apache.org> on 2025/09/02 20:33:38 UTC

[I] Add CountDownLatch to ITs to make threads start at the same time [accumulo]

DomGarguilo opened a new issue, #5849:
URL: https://github.com/apache/accumulo/issues/5849

   **Is your feature request related to a problem? Please describe.**
   In some ITs we use a pattern where we have a `CountDownLatch` and do the following within a `Future` task:
   ```java
   var future = executorService.submit(() -> {
             latch.countDown();
             latch.await();
             ...
   }
   ```
   This makes each thread wait at the await line until `countDown() is called the desired number of times. This makes all threads start executing the desired code at the same time which increases the stress of the test 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-unsubscribe@accumulo.apache.org.apache.org

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


Re: [I] Add CountDownLatch to ITs to make threads start at the same time [accumulo]

Posted by "DomGarguilo (via GitHub)" <gi...@apache.org>.
DomGarguilo closed issue #5849: Add CountDownLatch to ITs to make threads start at the same time
URL: https://github.com/apache/accumulo/issues/5849


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

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