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

Marker interface for things whose state can be loaded from disk

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • 2.428

      A large number of objects in Jenkins are persisted to disk by implementing Saveable.

      The state for these objects is conversely loaded from disk on startup as part of their constructor. In many cases, the actual process is done in a method called load.

      CloudBees CI High Availability support selectively reloads parts of the Jenkins object model, as multiple replicas of a Jenkins instance are running on the same filesystem, and updates done by a replica need to be propagated to other running replicas. This ensures both object model are consistent in different replicas.

      Introducing the Loadable formalizes this requirement, ensuring any object that needs to (re-)load its state from disk will do it through a load method.

          [JENKINS-72107] Marker interface for things whose state can be loaded from disk

          Mark Waite added a comment -

          vlatombe since this was included in 2.427 and is not labeled as an lts-candidate, by default it will not be backported into the 2.426.1 release. It would first become visible in an LTS release in mid Feb 2024. Is that sufficient for you or should this be considered for backporting to 2.426.1?

          Mark Waite added a comment - vlatombe since this was included in 2.427 and is not labeled as an lts-candidate, by default it will not be backported into the 2.426.1 release. It would first become visible in an LTS release in mid Feb 2024. Is that sufficient for you or should this be considered for backporting to 2.426.1?

          Jesse Glick added a comment -

          This is an enhancement not a bug fix and so would not be eligible for LTS backport.

          Jesse Glick added a comment - This is an enhancement not a bug fix and so would not be eligible for LTS backport.

            vlatombe Vincent Latombe
            vlatombe Vincent Latombe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: