Skip to content

Commit

Permalink
Merge pull request #1584 from NCEAS/develop
Browse files Browse the repository at this point in the history
Second merge for 2.18.0 from develop to main
  • Loading branch information
taojing2002 authored May 9, 2022
2 parents 4aee53a + e94e0cc commit 3ce1647
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/metacat.properties
Original file line number Diff line number Diff line change
Expand Up @@ -822,11 +822,11 @@ index.hazelcast.indexeventmap=hzIndexEventMap
index.tdb.directory=/var/metacat/tdb
index.accessLog.count.enabled=false
#The time (millisecond) that the resource map processor waits for the solr doc readiness of its components
index.resourcemap.waitingComponent.time=100
index.resourcemap.waitingComponent.time=300
#The number of the attempts that the resource map processor tries to wait for the solr doc readiness of its components
index.resourcemap.waitingComponent.max.attempts=5
#The time (millisecond) that indexer will wait to grab a newer version of solr doc when a version conflict happened
index.solr.versionConflict.waiting.time=100
index.solr.versionConflict.waiting.time=200
#The number of the attempts that indexer tries to grab a newer version of solr doc when a version conflict happened
index.solr.versionConflict.max.attempts=2
#You may specify the exact number of threads the indexer will use.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public class SystemMetadataEventListener implements EntryListener<Identifier, In
if (specifiedThreadNumber > 0 && specifiedThreadNumber < nThreads) {
nThreads = specifiedThreadNumber;
}
log.info("SystemMetadataEventListener static part - the number of indexing threads specified in the metacat.properties file is " + specifiedThreadNumber +
". The number of threads calculated from the available processors is " + availableProcessors +
". The eventual number of threads will used in the executor is " + nThreads);
log.info("SystemMetadataEventListener static part - the size of index thread pool specified in the metacat.properties file is " + specifiedThreadNumber +
". The size computed from the available processors is " + availableProcessors +
". Final computed thread pool size for index executor: " + nThreads);
//int nThreads = org.dataone.configuration.Settings.getConfiguration().getInt("index.thread.number", 1);
//log.info("+++++++++++++++SystemMetadataEventListener.static - the number of threads will used in executors is " + nThreads);
executor = Executors.newFixedThreadPool(nThreads);
Expand Down

0 comments on commit 3ce1647

Please sign in to comment.