You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by slly <sl...@126.com> on 2020/10/24 02:59:47 UTC
A little confused about CoreContainer.replayUpdatesExecutor
Hello everyone.
I'm a little confused: replayUpdatesExecutor, only one thread is always running?
OrderedExecutor limits the cfg.getReplayUpdatesThreads() number of tasks to be submitted, and the newMDCAwareCachedThreadPool thread queue are up to cfg.getReplayUpdatesThreads() queues, the thread poll corePoolSize is 0.
CoreContainer.java
| this.replayUpdatesExecutor =newOrderedExecutor( |
| | cfg.getReplayUpdatesThreads(), |
| | ExecutorUtil.newMDCAwareCachedThreadPool( |
| | cfg.getReplayUpdatesThreads(), |
| | newSolrNamedThreadFactory("replayUpdatesExecutor"))); |
Thanks.