Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30683

Mongo index creation should not be done for each new connection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2021.8
    • Fix Version/s: 2021.16
    • Component/s: Core MongoDB

      Description

      Since NXP-29261 index creation perform on new connection

      com.mongodb.client.internal.MongoCollectionImpl.createIndexes(MongoCollectionImpl.java:825) ~[mongodb-driver-sync-4.1.1.jar:?]
      	at com.mongodb.client.internal.MongoCollectionImpl.createIndex(MongoCollectionImpl.java:810) ~[mongodb-driver-sync-4.1.1.jar:?]
      	at com.mongodb.client.internal.MongoCollectionImpl.createIndex(MongoCollectionImpl.java:805) ~[mongodb-driver-sync-4.1.1.jar:?]
      	at org.nuxeo.ecm.core.storage.mongodb.MongoDBConnection.initRepositoryIndexes(MongoDBConnection.java:257) ~[nuxeo-core-storage-mongodb-2021.8.6.jar:?]
      	at org.nuxeo.ecm.core.storage.mongodb.MongoDBConnection.initRepository(MongoDBConnection.java:224) ~[nuxeo-core-storage-mongodb-2021.8.6.jar:?]
      	at org.nuxeo.ecm.core.storage.mongodb.MongoDBConnection.<init>(MongoDBConnection.java:173) ~[nuxeo-core-storage-mongodb-2021.8.6.jar:?]
      	at org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository.getConnection(MongoDBRepository.java:258) ~[nuxeo-core-storage-mongodb-2021.8.6.jar:?]
      	at org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository.getConnection(MongoDBRepository.java:58) ~[nuxeo-core-storage-mongodb-2021.8.6.jar:?]
      	at org.nuxeo.ecm.core.storage.dbs.DBSCachingRepository.getConnection(DBSCachingRepository.java:198) ~[nuxeo-core-storage-dbs-2021.8.6.jar:?]
      	at org.nuxeo.ecm.core.storage.dbs.DBSTransactionState.<init>(DBSTransactionState.java:175) ~[nuxeo-core-storage-dbs-2021.8.6.jar:?]
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.<init>(DBSSession.java:202) ~[nuxeo-core-storage-dbs-2021.8.6.jar:?]
      	at org.nuxeo.ecm.core.storage.dbs.DBSCachingRepository.getSession(DBSCachingRepository.java:276) ~[nuxeo-core-storage-dbs-2021.8.6.jar:?]
      

      This is because nuxeo.mongodb.directories.enabled is set to true by default.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: