Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29745

Jenkins.trimLabels slowed down significantly when complex implications are evaluated over large slave pool

XMLWordPrintable

      Caching labels will not be as elegant/efficient as one would think since expressions are provided with self labels as well.

      "Handling POST /hudson/computer/dev10-W2k8-ia64/configSubmit : ajp-127.0.0.1-8009-87" daemon prio=10 tid=47751805982720 nid=7661
         java.lang.Thread.State: RUNNABLE
      	at hudson.model.Label$2.resolve(Label.java:165)
      	at hudson.model.Label$2.resolve(Label.java:163)
      	at hudson.model.labels.LabelAtom.matches(LabelAtom.java:144)
      	at hudson.model.labels.LabelExpression$Binary.matches(LabelExpression.java:124)
      	at hudson.model.labels.LabelExpression$Binary.matches(LabelExpression.java:124)
      	at hudson.model.labels.LabelExpression$Binary.matches(LabelExpression.java:124)
      	at hudson.model.labels.LabelExpression$Binary.matches(LabelExpression.java:124)
      	at hudson.model.Label.matches(Label.java:163)
      	at org.jenkinsci.plugins.impliedlabels.Implication.infer(Implication.java:90)
      	at org.jenkinsci.plugins.impliedlabels.Config.evaluate(Config.java:125)
      	at org.jenkinsci.plugins.impliedlabels.Implier.findLabels(Implier.java:48)
      	at hudson.model.Node.getDynamicLabels(Node.java:267)
      	at hudson.model.Node.getAssignedLabels(Node.java:252)
      	at hudson.model.Label.matches(Label.java:174)
      	at hudson.model.Label.getNodes(Label.java:199)
      	at hudson.model.Label.isEmpty(Label.java:418)
      	at jenkins.model.Jenkins.trimLabels(Jenkins.java:1720)
      	at jenkins.model.Jenkins.setNodes(Jenkins.java:1698)
      	at hudson.model.Computer.replaceBy(Computer.java:1247)
      	- locked <0x407bc5250> (a hudson.model.Hudson)
      	at hudson.model.Computer.doConfigSubmit(Computer.java:1197)
                    ...
      

            Unassigned Unassigned
            olivergondza Oliver Gondža
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: