Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-34020

Deleting tag results in disassociation attempt against all components

Details

    • 1
    • NXRM Immortals Sprint 38
    • 3
    • non-concept
    • 2

    Description

      Deleting a tag results in a disassociation attempt against all components.

      Also as a result, there is a performance concern where every increase in the number of components may result in a longer tag delete time.

      To reproduce (test is against OrientDB, issue is not observed with Postgres):

      1. Set up instance with multiple components across multiple repos.
      2. Create a tag and associate it to one component.
      3. Enable DEBUG logging on com.sonatype.nexus.tags.orient.internal.OrientTagServiceImpl
      4. Delete the tag from step 1 (DELETE /service/rest/v1/tags/{name}) and observe that the DEBUG logging will log a "Disassociating component" entry for every component.

      Expected:

      Deleting a tag should only result in a disassociation attempt against the associated component(s).

      Attachments

        Activity

          People

            mshevelov Mykyta Shevelov
            hardeepn Hardeep Nagra
            Michael Oliverio Michael Oliverio
            NXRM - Optimus
            Mykyta Shevelov Mykyta Shevelov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              tigCommentSecurity.panel-title