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

Fix Nuxeo startup logging of duplicate components

    XMLWordPrintable

    Details

    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Remove unused RegistrationInfoImpl#checkExtensions()

      Show
      Remove unused RegistrationInfoImpl#checkExtensions()
    • Team:
      AT
    • Sprint:
      nxAT 11.1.23
    • Story Points:
      3

      Description

      Nuxeo startup logs have been modified with a series of changes (NXP-20911, NXP-19326, NXP-22560, NXP-22749, NXP-23864).

      The behaviour needs a review because, testing with faulty contributions at NXP-28948, the duplicate component name is not logged anymore at startup, apparently due to changes at NXP-22749.
      Also, these errors should be logged at error level instead of warn level.
      Need also to make sure it still behaves correctly in hot reload use case after changes.

      Also, there is deprecated code for duplicate components, dropping the error/warn log for components whose name starts with "org.nuxeo.runtime". If i remember well, this weird behaviour was seen on jboss distributions, and does not seem to be visible anymore.
      Update on this: this seems to still be valid, sadly:

      2020-08-06T15:46:35,392 ERROR [ComponentManagerImpl] Duplicate component name: service:org.nuxeo.runtime.EventService
      2020-08-06T15:46:35,394 ERROR [ComponentManagerImpl] Duplicate component name: service:org.nuxeo.runtime.RuntimeComponent
      2020-08-06T15:46:35,395 ERROR [ComponentManagerImpl] Duplicate component name: service:org.nuxeo.runtime.services.resource.ResourceService
      2020-08-06T15:46:35,396 ERROR [ComponentManagerImpl] Duplicate component name: service:org.nuxeo.runtime.LoginComponent
      2020-08-06T15:46:35,397 ERROR [ComponentManagerImpl] Duplicate component name: service:org.nuxeo.runtime.LoginAsComponent
      2020-08-06T15:46:35,398 ERROR [ComponentManagerImpl] Duplicate component name: service:org.nuxeo.runtime.model.persistence
      2020-08-06T15:46:35,399 ERROR [ComponentManagerImpl] Duplicate component name: service:org.nuxeo.runtime.trackers.files
      2020-08-06T15:46:35,401 ERROR [ComponentManagerImpl] Duplicate component name: service:org.nuxeo.runtime.ConfigurationService
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 1 hour
                  3d 1h