Skip to content

Commit 1ea5adf

Browse files
committed
always bounce IndexParallelizer
fixes #4374
1 parent 3ab48ec commit 1ea5adf

File tree

1 file changed

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

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,12 @@ public static void main(String[] argv) {
422422
System.exit(1);
423423
} finally {
424424
env.shutdownSearchExecutor();
425+
/*
426+
* Normally the IndexParallelizer is bounced (i.e. thread pools within are terminated)
427+
* via auto-closed in doIndexerExecution(), however there are cases (--noIndex) that
428+
* avoid that path, yet use the IndexParallelizer. So, bounce it here for a good measure.
429+
*/
430+
env.getIndexerParallelizer().bounce();
425431
stats.report(LOGGER, "Indexer finished", "indexer.total");
426432
}
427433
}
@@ -1046,7 +1052,7 @@ public void prepareIndexer(RuntimeEnvironment env,
10461052
List<String> repositories) throws IndexerException, IOException {
10471053

10481054
if (!env.validateUniversalCtags()) {
1049-
throw new IndexerException("Could not find working Universal ctags. " +
1055+
throw new IndexerException("Could not find working Universal . " +
10501056
"Pro tip: avoid installing Universal ctags from snap packages.");
10511057
}
10521058

0 commit comments

Comments
 (0)