kevinrr888 commented on code in PR #5853: URL: https://github.com/apache/accumulo/pull/5853#discussion_r2325473641
########## core/src/test/java/org/apache/accumulo/core/crypto/CryptoTest.java: ########## @@ -539,14 +540,18 @@ private void testMultipleThreads(Scope scope) throws Exception { var executor = Executors.newCachedThreadPool(); - List<Future<Boolean>> verifyFutures = new ArrayList<>(); + final int numTasks = 32; + List<Future<Boolean>> verifyFutures = new ArrayList<>(numTasks); + CountDownLatch startLatch = new CountDownLatch(numTasks); Review Comment: 1) Yeah, changing to a cachedThreadPool would fix this, we just need to be sure this is done everywhere where these changes are present 2) Yeah, this was existing, I meant for this to be a follow on, not something for this PR 3) #5801 is an example. See the `testDefendAgainstThreadsCreateSameTableNameConcurrently`. Just have an atomic integer to keep track of how many are waiting, and wait for that to be a certain value before the count down -- 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