This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 12 Nov, 2020 15 commits
  2. 11 Nov, 2020 23 commits
  3. 10 Nov, 2020 2 commits
    • Chris Baker's avatar
    • Jerome Gravel-Niquet's avatar
      Don't ignore nil devices in plugin fingerprint · 66ddf629
      Jerome Gravel-Niquet authored
      Even if a plugin sends back an empty `[]*device.DeviceGroup`, it's transformed to `nil` during the RPC. Our custom device plugin is returning empty `FingerprintResponse.Devices` very often. Our temporary fix is to send a dummy `*DeviceGroup` if the slice is empty. This has the effect of never triggering the "first fingerprint" and therefore timing out after 50s.
      
      In turn, this made our node exceed its hearbeat grace period when restarting it, revoking all vault tokens for its allocations, causing a restart of all our allocations because the token couldn't be renewed.
      
      Removing the logic for `f.Devices == nil` does not appear to affect the functionality of the function.
      66ddf629