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

RepositoryManagerImpl is not thread-safe

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.3.0
    • Component/s: Repository
    • Labels:
    • Story Points:
      2
    • Sprint:
      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

            Assignee:
            jstephens Joseph Stephens
            Reporter:
            bentmann Benjamin Bentmann
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title