Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-4547

Implement Update Control Map expiration logic

    XMLWordPrintable

    Details

      Description

      Acceptance criteria:

      • Each map (MEN-4535) stored, must have a time attached (make sure it is the monotonic time, not wall clock time).
      • The time is updated to the current time each time the map is updated by an outside source (not by Mender itself).
      • When UpdateControlMapExpirationTimeSeconds elapses without an update, the map is considered expired, and the map must be moved to a separate pool of expired maps.
      • When client returns to Idle state, the pool of expired maps must be cleared.
      • When a new map is set which matches a map in the expired pool, the expired map must be removed, and the new map added to the regular pool.
      • The expired pool must have the same primary keys and thread safety as the regular pool.
        • In particular, an update to both maps must be thread safe (and thereby atomic).
      • Removal of maps as implemented in MEN-4546 must remove the map from both pools.
      • Feature branch: feature-dbus_update_control

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oleorhagen Ole Petter Orhagen
              Reporter:
              a10040 Kristian Amlie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: