mirror of https://github.com/apache/lucene.git
SOLR-14484: avoid putting null into MDC
Co-authored-by: Andras Salamon
This commit is contained in:
parent
57b7d8a8db
commit
2ac640f9d0
|
@ -329,7 +329,7 @@ public class ConcurrentUpdateHttp2SolrClient extends SolrClient {
|
|||
|
||||
// *must* be called with runners monitor held, e.g. synchronized(runners){ addRunner() }
|
||||
private void addRunner() {
|
||||
MDC.put("ConcurrentUpdateHttp2SolrClient.url", client.getBaseURL());
|
||||
MDC.put("ConcurrentUpdateHttp2SolrClient.url", String.valueOf(client.getBaseURL())); // MDC can't have null value
|
||||
try {
|
||||
Runner r = new Runner();
|
||||
runners.add(r);
|
||||
|
|
Loading…
Reference in New Issue