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

DBS transactional fails to start registering multiple times the same metric

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 11.1-SNAPSHOT
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Core DBS
    • Team:
      PLATFORM
    • Story Points:
      1

      Description

      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:?]
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h