From aec7811b6617276bee667a3d0f61dd27a0ecda4c Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Wed, 24 Dec 2014 14:48:28 +0000 Subject: [PATCH] SOLR-6885: Add core name to RecoveryThread name This closes #117. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1647799 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 2 ++ solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 57022d59e7b..e214e2b0478 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -548,6 +548,8 @@ Other Changes more user-friendly error reporting (no stack trace), and the ability to pass a directory when using bin/solr to create a core or collection (Timothy Potter) +* SOLR-6885: Add core name to RecoveryThread name. (Christine Poerschke via shalin) + ================== 4.10.3 ================== Bug Fixes diff --git a/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java b/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java index fb63d66cace..52a89e353e1 100644 --- a/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java +++ b/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java @@ -97,7 +97,7 @@ public class RecoveryStrategy extends Thread implements ClosableThread { this.cc = cc; this.coreName = cd.getName(); this.recoveryListener = recoveryListener; - setName("RecoveryThread"); + setName("RecoveryThread-"+this.coreName); zkController = cc.getZkController(); zkStateReader = zkController.getZkStateReader(); baseUrl = zkController.getBaseUrl();