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

RepositoryManagerImpl is not thread-safe

Details

    • 2
    • Sprint 91

    Description

      1. Fire up NX3 with a debugger
      2. Set a breakpoint in RepositoryManagerImpl.track() (https://github.com/sonatype/nexus-internal/blob/8f1102843b5c02ad05a23e1d18e9ff2e24f27ee3/components/nexus-repository/src/main/java/org/sonatype/nexus/repository/manager/RepositoryManagerImpl.java#L158)
      3. Create a new repo, observe the breakpoint gets hit and leave the thread suspended at it
      4. Create another repo, observe the breakpoint gets hit again, i.e. two concurrent threads can execute that method which modifies repositories, a simple HashMap...

      Attachments

        Activity

          People

            jstephens Joseph Stephens
            bentmann Benjamin Bentmann
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              tigCommentSecurity.panel-title