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. 05 Jul, 2022 2 commits
  2. 03 Jul, 2022 1 commit
    • Seth Hoenig's avatar
      boltdd: add iterate and prefix deletion helpers · 6bb52a54
      Seth Hoenig authored
      This PR adds 2 helper functions to the helpers/bbolt package
      
      - Iterate: iterate every key in a bucket. Automatically decodes the
      msg pack value into the provided value argument.
      
      - DeletePrefix: deletes every key in a bucket starting with a
      given prefix. Manages the wrapper's hash values accordingly. Uses
      a cursor & sync to operate efficiently.
      6bb52a54
  3. 01 Jul, 2022 4 commits
  4. 30 Jun, 2022 3 commits
  5. 29 Jun, 2022 2 commits
  6. 28 Jun, 2022 4 commits
  7. 27 Jun, 2022 6 commits
  8. 26 Jun, 2022 2 commits
  9. 25 Jun, 2022 3 commits
  10. 24 Jun, 2022 3 commits
  11. 23 Jun, 2022 2 commits
    • Tim Gross's avatar
      fix deadlock in plan_apply (#13407) · 0213a36e
      Tim Gross authored
      The plan applier has to get a snapshot with a minimum index for the
      plan it's working on in order to ensure consistency. Under heavy raft
      loads, we can exceed the timeout. When this happens, we hit a bug
      where the plan applier blocks waiting on the `indexCh` forever, and
      all schedulers will block in `Plan.Submit`.
      
      Closing the `indexCh` when the `asyncPlanWait` is done with it will
      prevent the deadlock without impacting correctness of the previous
      snapshot index.
      
      This changeset includes the a PoC failing test that works by injecting
      a large timeout into the state store. We need to turn this into a test
      we can run normally without breaking the state store before we can
      merge this PR.
      
      Increase `snapshotMinIndex` timeout to 10s.
      This timeout creates backpressure where any concurrent `Plan.Submit`
      RPCs will block waiting for results. This sheds load across all
      servers and gives raft some CPU to catch up, because schedulers won't
      dequeue more work while ...
      0213a36e
    • Seth Hoenig's avatar
      core: remove support for raft protocol version 2 · f1cafd07
      Seth Hoenig authored
      This PR checks server config for raft_protocol, which must now
      be set to 3 or unset (0). When unset, version 3 is used as the
      default.
      f1cafd07
  12. 22 Jun, 2022 2 commits
  13. 21 Jun, 2022 3 commits
  14. 20 Jun, 2022 2 commits
  15. 17 Jun, 2022 1 commit