Skip to content

Commit 418dc06

Browse files
committed
SOLR-17218: Fix indexFetcher logging to include MDC details
1 parent 2def20a commit 418dc06

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

solr/CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ Bug Fixes
156156

157157
* SOLR-17200: Fix false positive race condition in `/health?requireHealthyCores=true` during core loading (hossman)
158158

159+
* SOLR-17218: Fix indexFetcher logging to include MDC details (hossman)
160+
159161
Dependency Upgrades
160162
---------------------
161163

solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,9 +1214,10 @@ private void setupPolling(String intervalStr) {
12141214
log.info(" No value set for 'pollInterval'. Timer Task not started.");
12151215
return;
12161216
}
1217-
1217+
final Map<String, String> context = MDC.getCopyOfContextMap();
12181218
Runnable task =
12191219
() -> {
1220+
MDC.setContextMap(context);
12201221
if (pollDisabled.get()) {
12211222
log.info("Poll disabled");
12221223
return;

0 commit comments

Comments
 (0)