Skip to content

Commit

Permalink
SOLR-16632: Add core name to periodic delete related log messages (#1311
Browse files Browse the repository at this point in the history
)

Co-authored-by: Andras Salamon <asalamon74@apache.org>
  • Loading branch information
bszabo97 and asalamon74 committed Feb 1, 2023
1 parent be5ad01 commit f8171f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions solr/CHANGES.txt
Expand Up @@ -248,6 +248,8 @@ Other Changes

* SOLR-16627: Upgrade google-cloud-bom to 0.184.0, re2j to 1.6, and grpc to 1.51.0 (Kevin Risden)

* SOLR-16632: Add core name to periodic delete related log messages (Bence Szabo via Andras Salamon)

================== 9.1.1 ==================

Bug Fixes
Expand Down
Expand Up @@ -381,7 +381,9 @@ public void run() {
// No-Op
return;
}
log.info("Beginning periodic deletion of expired docs");
if (log.isInfoEnabled()) {
log.info("Beginning periodic deletion of expired docs on core: {}", core.getName());
}

UpdateRequestProcessorChain chain = core.getUpdateProcessingChain(deleteChainName);
UpdateRequestProcessor proc = chain.createProcessor(req, rsp);
Expand Down Expand Up @@ -416,7 +418,9 @@ public void run() {
}
}

log.info("Finished periodic deletion of expired docs");
if (log.isInfoEnabled()) {
log.info("Finished periodic deletion of expired docs on core: {}", core.getName());
}
} catch (IOException ioe) {
log.error("IOException in periodic deletion of expired docs: ", ioe);
// DO NOT RETHROW: ScheduledExecutor will suppress subsequent executions
Expand Down

0 comments on commit f8171f9

Please sign in to comment.