When using MongoDB in transnational mode (MongoDB >=4 in cluster or with a replicaset).
The new code DBS transactional is activated (NXP-26690) and Nuxeo fails to start because each DBS cache register the same metric gauge which raises:
2020-03-27T08:38:55,864 ERROR [ComponentManager] Component service:org.nuxeo.ecm.platform.relations.services.RelationService notification of application started failed: A metric named nuxeo.repositories.repository.cache.hit.count{repository=default} already exists java.lang.IllegalArgumentException: A metric named nuxeo.repositories.repository.cache.hit.count{repository=default} already exists at io.dropwizard.metrics5.MetricRegistry.register(MetricRegistry.java:99) ~[metrics-core-5.0.0-rc3.jar:5.0.0-rc3] at io.dropwizard.metrics5.MetricRegistry.registerAll(MetricRegistry.java:543) ~[metrics-core-5.0.0-rc3.jar:5.0.0-rc3] at io.dropwizard.metrics5.MetricRegistry.registerAll(MetricRegistry.java:112) ~[metrics-core-5.0.0-rc3.jar:5.0.0-rc3] at org.nuxeo.ecm.core.storage.dbs.DBSCachingRepository.newCache(DBSCachingRepository.java:109) ~[nuxeo-core-storage-dbs-11.1-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.storage.dbs.DBSCachingConnection.<init>(DBSCachingConnection.java:94) ~[nuxeo-core-storage-dbs-11.1-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.storage.dbs.DBSCachingRepository.getConnection(DBSCachingRepository.java:193) ~[nuxeo-core-storage-dbs-11.1-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.storage.dbs.DBSTransactionState.<init>(DBSTransactionState.java:166) ~[nuxeo-core-storage-dbs-11.1-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.storage.dbs.DBSSession.<init>(DBSSession.java:196) ~[nuxeo-core-storage-dbs-11.1-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.storage.dbs.DBSRepositoryBase.newSession(DBSRepositoryBase.java:360) ~[nuxeo-core-storage-dbs-11.1-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.storage.dbs.DBSRepositoryBase.getSession(DBSRepositoryBase.java:353) ~[nuxeo-core-storage-dbs-11.1-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.storage.dbs.DBSCachingRepository.getSession(DBSCachingRepository.java:264) ~[nuxeo-core-storage-dbs-11.1-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:133) ~[nuxeo-core-11.1-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.api.local.LocalSession.<init>(LocalSession.java:86) ~[nuxeo-core-11.1-SNAPSHOT.jar:?]
- is caused by
-
NXP-26690 Transactional DBS
- Resolved