-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2021.8
-
Fix Version/s: 2021.16
-
Component/s: Core MongoDB
-
Release Notes Summary:MongoDB index are created at startup only
-
Team:PLATFORM
-
Sprint:nxplatform #55
-
Story Points:3
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.
- is related to
-
NXP-29261 Allow configuration of repository/directory indexes to add, even after initial creation
- Resolved