thomasmueller commented on code in PR #2031:
URL: https://github.com/apache/jackrabbit-oak/pull/2031#discussion_r1955920579
##########
oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/DocumentStoreIndexerBase.java:
##########
@@ -413,12 +413,13 @@ public void reindex() throws CommitFailedException,
IOException {
}
}
log.info("Top slowest nodes to index (ms): {}",
slowestTopKElements);
+ }
- indexerProviders.forEach(indexProvider -> {
- ExtractedTextCache extractedTextCache =
indexProvider.getTextCache();
- CacheStats cacheStats = extractedTextCache == null ?
null : extractedTextCache.getCacheStats();
- log.info("Text extraction cache statistics: {}",
cacheStats == null ? "N/A" : cacheStats.cacheInfoAsString());
- });
+ for (NodeStateIndexerProvider indexerProvider :
indexerProviders) {
+ indexerProvider.close();
Review Comment:
Hm, shouldn't we close it after logging?
(I guess currently "indexerProvider.getTextCache()" will work after closing,
but it seems wrong to me to close it first).
--
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]