Stop using the formatted timestamp to compute Run.id, and just use the build number as the directory name, so that

      r.getId().equals(String.valueOf(r.number))

      in which case the timestamp would have to be made a nontransient field (but number could be transient). Then build number symlinks could be dispensed with, saving some hassle and overhead; and AbstractLazyLoadRunMap could be greatly simplified, since the disk location would be immediately predictable from the number, which is what most API calls care about.

      The downside is that there would have to be a one-time migration, which could be slow on a big installation, and not reversible.

          [JENKINS-24380] Use build numbers as IDs

          Jesse Glick created issue -

          Jesse Glick added a comment -

          Would allow an easy fix of JENKINS-24376 and JENKINS-19977.

          Jesse Glick added a comment - Would allow an easy fix of JENKINS-24376 and JENKINS-19977 .
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-24376 [ JENKINS-24376 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-19977 [ JENKINS-19977 ]

          Jesse Glick added a comment -

          And issues like JENKINS-22767 would either go away or be easier to fix.

          Jesse Glick added a comment - And issues like JENKINS-22767 would either go away or be easier to fix.
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-22767 [ JENKINS-22767 ]

          Jesse Glick added a comment -

          Filed PR 1379 to play with this.

          Jesse Glick added a comment - Filed PR 1379 to play with this.
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 1379 (Web Link)" [ 11306 ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-23130 [ JENKINS-23130 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-23152 [ JENKINS-23152 ]

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: