Skip to content

Commit 007bf26

Browse files
author
Vladimir Kotal
authored
use await() in Indexer to wait indefinitely (#3811)
* use await() * remove unused import
1 parent 635a55a commit 007bf26

File tree

1 file changed

+1
-2
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/index

1 file changed

+1
-2
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/Indexer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import java.util.Set;
5454
import java.util.TreeSet;
5555
import java.util.concurrent.CountDownLatch;
56-
import java.util.concurrent.TimeUnit;
5756
import java.util.logging.Level;
5857
import java.util.logging.Logger;
5958
import java.util.stream.Collectors;
@@ -1136,7 +1135,7 @@ public void doIndexerExecution(final boolean update, List<String> subFiles,
11361135
// Wait forever for the executors to finish.
11371136
try {
11381137
LOGGER.info("Waiting for the executors to finish");
1139-
latch.await(999, TimeUnit.DAYS);
1138+
latch.await();
11401139
} catch (InterruptedException exp) {
11411140
LOGGER.log(Level.WARNING, "Received interrupt while waiting" +
11421141
" for executor to finish", exp);

0 commit comments

Comments
 (0)