mirror of https://github.com/apache/lucene.git
b335034615
When we are creating a new thread we should give it a descriptive name and enforce this via ForbiddenAPIs. This doesn't apply to Runnable or Callable objects that we pass to an executor, since those should be getting named by the executor itself. We don't require this in tests because the tests should be more self contained and there is less benefit in descriptive names. If somebody is already profiling a test, then they likely have the context to understand what the unnamed threads are doing, whereas a thread dump from a running Solr instance should have good thread names for everything. This is especially helpful when doing profiling, otherwise we end up with a bunch of Thread-# that are hard to tell apart and search on. |
||
---|---|---|
.. | ||
com.carrotsearch.randomizedtesting.randomizedtesting-runner.all.txt | ||
com.fasterxml.jackson.core.jackson-annotations.solr.txt | ||
com.google.guava.guava.all.txt | ||
commons-codec.commons-codec.all.txt | ||
defaults.all.txt | ||
defaults.lucene.txt | ||
defaults.solr.txt | ||
defaults.tests.txt | ||
java.solr.txt | ||
javax.servlet.javax.servlet-api.solr.txt | ||
junit.junit.lucene.txt | ||
org.apache.logging.log4j.log4j-api.solr.txt |