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

Yum merge metadata capability cause Stack Overflow when repository is put Out of Service

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Capabilities
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Sprint 5

      Description

      The test scenario contains a step, that a capability that depend on a repository should get passivated.

      I tried this with "Yum Generate Metadata" using Releases repository.

      Then Releases put out of service, UI got Server Error 500 response and Nexus log had a stack overflow exception:

      jvm 1 | java.lang.StackOverflowError: null
      jvm 1 | at java.util.regex.Pattern$GroupTail.match(Pattern.java:4615) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$CharProperty.match(Pattern.java:3694) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$GroupHead.match(Pattern.java:4556) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$Branch.match(Pattern.java:4500) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$Branch.match(Pattern.java:4500) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$Branch.match(Pattern.java:4500) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$BranchConn.match(Pattern.java:4466) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$GroupTail.match(Pattern.java:4615) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$Curly.match0(Pattern.java:4177) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$Curly.match(Pattern.java:4132) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$GroupHead.match(Pattern.java:4556) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$Branch.match(Pattern.java:4502) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$Branch.match(Pattern.java:4500) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$BmpCharProperty.match(Pattern.java:3715) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Pattern$Start.match(Pattern.java:3408) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Matcher.search(Matcher.java:1199) ~[na:1.7.0_45]
      jvm 1 | at java.util.regex.Matcher.find(Matcher.java:618) ~[na:1.7.0_45]
      jvm 1 | at java.util.Formatter.parse(Formatter.java:2517) ~[na:1.7.0_45]
      jvm 1 | at java.util.Formatter.format(Formatter.java:2469) ~[na:1.7.0_45]
      jvm 1 | at java.util.Formatter.format(Formatter.java:2423) ~[na:1.7.0_45]
      jvm 1 | at java.lang.String.format(String.java:2797) ~[na:1.7.0_45]
      jvm 1 | at org.sonatype.nexus.proxy.utils.RepositoryStringUtils.getHumanizedNameString(RepositoryStringUtils.java:25) ~[nexus-core-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      jvm 1 | at org.sonatype.nexus.proxy.RepositoryNotAvailableException.<init>(RepositoryNotAvailableException.java:32) ~[nexus-core-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      jvm 1 | at org.sonatype.nexus.proxy.repository.AbstractRepository.checkConditions(AbstractRepository.java:1155) ~[nexus-core-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      jvm 1 | at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:590) ~[nexus-core-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:138) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      jvm 1 | at org.sonatype.nexus.yum.internal.capabilities.MetadataCapabilitySupport.renderStatus(MetadataCapabilitySupport.java:157) ~[na:na]
      jvm 1 | at org.sonatype.nexus.capability.support.CapabilitySupport.status(CapabilitySupport.java:78) ~[na:na]
      ...

        Attachments

          Activity

            People

            • Assignee:
              cstamas Tamás Cservenák
              Reporter:
              cstamas Tamás Cservenák
              Last Updated By:
              Tamás Cservenák
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: