-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.7.2
-
Fix Version/s: 5.9.3
-
Component/s: Excel Export
In org.nuxeo.ecm.platform.importer.base.GenericThreadedImportTask#recursiveCreateDocumentFromNode, this call:
GenericMultiThreadedImporter.getExecutor().execute(task);
will crash the importer if the queue size of the ThreadPoolExecutor is > 100.
There is an arbitrary limit placed on the importTP of 100.
importTP = new ThreadPoolExecutor(nbThreads, nbThreads, 500L,TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>(100),new NamedThreadFactory("Nuxeo-Importer-"));
We have fixed this problem during a large import, by removing this arbitrary limitation (use standard constructor where queue length is limited to Integer.MAX). If the queue length must be kept to a small size, there are other alternatives. Perhaps if it must be kept, it should be passed as another parameter 'maxQueueLength'.