-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 9.2
-
Component/s: Core MongoDB, DAM
-
Backlog priority:1,000
-
Upgrade notes:
-
Sprint:nxcore 9.2.2, nxcore 9.2.5, nxcore 9.2.3, nxcore 9.2.4, nxcore 9.2.6
-
Story Points:1
Load test with 100 Million documents and MongoDB as backend (and standalone Elasticsearch).
The 100Millions documents are File, created with the bulk importer (random creation). After the repository is filled, when I install nuxeo-dam, the startup fails after 4 mn with a MongoDB timeout error (see log)
2016-12-05 19:19:47,434 INFO [localhost-startStop-1] [org.mongodb.driver.connection] Opened connection [connectionId{localValue:2, serverValue:35402}] to 10.0.0.79:27017 2016-12-05 19:23:47,893 INFO [localhost-startStop-1] [org.mongodb.driver.connection] Closed connection [connectionId{localValue:2, serverValue:35402}] to 10.0.0.79:27017 because there was a socket exception raised by this connection. 2016-12-05 19:23:47,899 INFO [localhost-startStop-1] [org.mongodb.driver.connection] Opened connection [connectionId{localValue:3, serverValue:35435}] to 10.0.0.79:27017 2016-12-05 19:23:47,914 ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Component service:org.nuxeo.ecm.core.repository.RepositoryServiceComponent notification of application started failed: Timeout while receiving message com.mongodb.MongoSocketReadTimeoutException: Timeout while receiving message
The guilty is PictureMigrationHandler
=> After disabling it (nuxeo.picture.migration.enabled set to false in an xml contribution), problem is solved.
We suspect this has to do with the query against MongoDB:
SELECT ecm:uuid FROM Document WHERE ecm:mixinType = 'Picture' AND ecm:isProxy = 0 AND views/*/title = 'Original' AND content/data IS NULL